]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: take inode lock in ocfs2_iop_set/get_acl()
authorTariq Saeed <tariq.x.saeed@oracle.com>
Fri, 4 Sep 2015 22:44:34 +0000 (15:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Sep 2015 23:54:41 +0000 (16:54 -0700)
commitfc7bfc4d7c02dbcb43c4c13f3e629da3f5536c2d
treee83e3185d0a3169863d64160f4528d0be72af90a
parentaa5b73e952619305a5d2de1d063a6abcbdd1bb2f
ocfs2: take inode lock in ocfs2_iop_set/get_acl()

This bug in mainline code is pointed out by Mark Fasheh.  When
ocfs2_iop_set_acl() and ocfs2_iop_get_acl() are entered from VFS layer,
inode lock is not held.  This seems to be regression from older kernels.
The patch is to fix that.

Orabug: 20189959
Signed-off-by: Tariq Saeed <tariq.x.saeed@oracle.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/acl.c