Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d7e97117 authored by Jan Kara's avatar Jan Kara
Browse files

quota: Fix double lock in add_dquot_ref() with CONFIG_QUOTA_DEBUG



When CONFIG_QUOTA_DEBUG is enabled we call inode_get_rsv_space() from
add_dquot_ref() while holding i_lock. But inode_get_rsv_space() is trying
to get i_lock as well resulting in double lock.

Fix the problem by moving inode_get_rsv_space() call out of i_lock.

Reported-and-analyzed-by: default avatarJie Liu <jeff.liu@oracle.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent fd2cbd4d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment