reiserfs: Relax lock on xattr removing
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 5 Jan 2010 01:14:30 +0000 (02:14 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Tue, 5 Jan 2010 07:00:50 +0000 (08:00 +0100)
commit4f3be1b5a98587b86cae05aa5d129dd0b3fff466
treef4d9acd840357ccdd6d5e667132996c050d0a9fa
parent108d3943c021f0b66e860ba98ded40b82b677bd7
reiserfs: Relax lock on xattr removing

When we remove an xattr, we call lookup_and_delete_xattr()
that takes some private xattr inodes mutexes. But we hold
the reiserfs lock at this time, which leads to dependency
inversions.

We can safely call lookup_and_delete_xattr() without the
reiserfs lock, where xattr inodes lookups only need the
xattr inodes mutexes.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Christian Kujau <lists@nerdbynature.de>
Cc: Alexander Beregalov <a.beregalov@gmail.com>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Ingo Molnar <mingo@elte.hu>
fs/reiserfs/xattr.c