reiserfs: Safely acquire i_mutex from xattr_rmdir
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 30 Dec 2009 06:40:39 +0000 (07:40 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sat, 2 Jan 2010 00:59:48 +0000 (01:59 +0100)
commit835d5247d98f46e35d007dcfa6215e526ca33360
tree83caead46ca375781c93648e54adb6873204f569
parent8b513f56d4e117f11cf0760abcc030eedefc45c3
reiserfs: Safely acquire i_mutex from xattr_rmdir

Relax the reiserfs lock before taking the inode mutex from
xattr_rmdir() to avoid the usual reiserfs lock <-> inode mutex
bad dependency.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Tested-by: 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