Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] lockdep: annotate reiserfs

reiserfs seems to have another locking level layer for the i_mutex due to the
xattrs-are-a-directory thing.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Ingo Molnar and committed by
Linus Torvalds
4df46240 36e8e578

+3 -2
+1 -1
fs/reiserfs/xattr.c
··· 424 424 int res = -ENOTDIR; 425 425 if (!file->f_op || !file->f_op->readdir) 426 426 goto out; 427 - mutex_lock(&inode->i_mutex); 427 + mutex_lock_nested(&inode->i_mutex, I_MUTEX_XATTR); 428 428 // down(&inode->i_zombie); 429 429 res = -ENOENT; 430 430 if (!IS_DEADDIR(inode)) {
+2 -1
include/linux/fs.h
··· 570 570 * 3: quota file 571 571 * 572 572 * The locking order between these classes is 573 - * parent -> child -> normal -> quota 573 + * parent -> child -> normal -> xattr -> quota 574 574 */ 575 575 enum inode_i_mutex_lock_class 576 576 { 577 577 I_MUTEX_NORMAL, 578 578 I_MUTEX_PARENT, 579 579 I_MUTEX_CHILD, 580 + I_MUTEX_XATTR, 580 581 I_MUTEX_QUOTA 581 582 }; 582 583