[PATCH] lockdep: annotate i_mutex

Teach special (recursive) locking code to the lock validator.  Has no effect
on non-lockdep kernels.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Ingo Molnar
2006-07-03 00:25:05 -07:00
committed by Linus Torvalds
parent a90b9c05df
commit f2eace23e9
3 changed files with 30 additions and 11 deletions

View File

@@ -200,7 +200,7 @@ static void update_sb(struct super_block *sb)
if (!root)
return;
mutex_lock(&root->d_inode->i_mutex);
mutex_lock_nested(&root->d_inode->i_mutex, I_MUTEX_PARENT);
list_for_each_entry(bus, &root->d_subdirs, d_u.d_child) {
if (bus->d_inode) {