circular locking dependency found in QUOTA OFF
commit7925409e202a41176b729671eab6e610a54153cd
authorJan Kara <jack@suse.cz>
Thu, 17 May 2007 05:11:19 +0000 (16 22:11 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 17 May 2007 12:23:05 +0000 (17 05:23 -0700)
tree7b97858fa33169a1616cc6f1e05b66117e97c1b3
parentbb49b32fece7910fbb02a6934bca4495596f6c8c
circular locking dependency found in QUOTA OFF

i_mutex on quota files is special.  Unlike i_mutexes for other inodes it is
acquired under dqonoff_mutex.  Tell lockdep about this lock ranking.  Also
comment and code in quota_sync_sb() seem to be bogus (as i_mutex for quota
file can be acquired under dqonoff_mutex).  Move truncate_inode_pages()
call under dqonoff_mutex and save some problems with races...

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dquot.c
fs/quota.c