summaryrefslogtreecommitdiff
path: root/fs/nfs_common
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2009-06-02 12:24:02 (GMT)
committerJoel Becker <joel.becker@oracle.com>2009-06-04 02:14:30 (GMT)
commit80d73f15d12f087f3fe074f8a4d6e5c5624f2b47 (patch)
treee0f290b644535b785431ff16a93f6b3eb76d5359 /fs/nfs_common
parent65bac575e35915801ea518b9d8d8824367d125c8 (diff)
downloadlinux-80d73f15d12f087f3fe074f8a4d6e5c5624f2b47.tar.xz
ocfs2: Fix possible deadlock in quota recovery
In ocfs2_finish_quota_recovery() we acquired global quota file lock and started recovering local quota file. During this process we need to get quota structures, which calls ocfs2_dquot_acquire() which gets global quota file lock again. This second lock can block in case some other node has requested the quota file lock in the mean time. Fix the problem by moving quota file locking down into the function where it is really needed. Then dqget() or dqput() won't be called with the lock held. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/nfs_common')
0 files changed, 0 insertions, 0 deletions