[PATCH] Skip check for mandatory locks when unlocking
commitee860b6a650360c91f5d5f9a94262aad9be90015
authorSachin Prabhu <sprabhu@redhat.com>
Wed, 10 Mar 2010 15:28:40 +0000 (10 10:28 -0500)
committerJoel Becker <joel.becker@oracle.com>
Wed, 17 Mar 2010 19:07:16 +0000 (17 12:07 -0700)
tree745d678c30f4bcb6bd3306b39f9b2d1869481cef
parenta3d3203e4bb40f253b1541e310dc0f9305be7c84
[PATCH] Skip check for mandatory locks when unlocking

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>
fs/ocfs2/locks.c