]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Skip check for mandatory locks when unlocking
authorSachin Prabhu <sprabhu@redhat.com>
Wed, 10 Mar 2010 15:28:40 +0000 (10:28 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:20:22 +0000 (13:20 -0700)
commit1fe6910cb27ef3512f96d4ff81c491eb322bd166
tree365a017adaa29a476503a9b2cf5870c7536566ad
parentbce8a761500acc6752aee26d9776bcaa6c812937
Skip check for mandatory locks when unlocking

commit ee860b6a650360c91f5d5f9a94262aad9be90015 upstream.

ocfs2_lock() will skip locks on file which has mode set to 02666. This
is a problem in cases where the mode of the file is changed after a
process has obtained a lock on the file.

ocfs2_lock() should skip the check for mandatory locks when unlocking a
file.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ocfs2/locks.c