From: Jan Kara Date: Tue, 24 Apr 2012 15:08:41 +0000 (+0200) Subject: quota: Fix double lock in add_dquot_ref() with CONFIG_QUOTA_DEBUG X-Git-Tag: v3.5-rc1~87^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7e9711760a17aef3a94fc6dff4759fa5961de25;p=pandora-kernel.git 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: Jie Liu Signed-off-by: Jan Kara --- Reading git-diff-tree failed