summaryrefslogtreecommitdiff
path: root/fs/reiserfs/xattr_acl.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2010-11-24 12:57:15 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-09 13:32:26 -0800
commitfec32bc5795b53a354d991c9652b671359e9f494 (patch)
treee7670afae7a866be58d31ecc9ac519a5664fc774 /fs/reiserfs/xattr_acl.c
parent1358a603a302fe587c682e94c238c514ec07667b (diff)
reiserfs: fix inode mutex - reiserfs lock misordering
commit da905873effecd1c0166e578bc4b5006f041b18b upstream. reiserfs_unpack() locks the inode mutex with reiserfs_mutex_lock_safe() to protect against reiserfs lock dependency. However this protection requires to have the reiserfs lock to be locked. This is the case if reiserfs_unpack() is called by reiserfs_ioctl but not from reiserfs_quota_on() when it tries to unpack tails of quota files. Fix the ordering of the two locks in reiserfs_unpack() to fix this issue. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Reported-by: Markus Gapp <markus.gapp@gmx.net> Reported-by: Jan Kara <jack@suse.cz> Cc: Jeff Mahoney <jeffm@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/reiserfs/xattr_acl.c')
0 files changed, 0 insertions, 0 deletions