From: Sachin Prabhu Date: Sat, 13 Mar 2010 15:03:55 +0000 (-0600) Subject: 9p: Skip check for mandatory locks when unlocking X-Git-Tag: v2.6.34-rc2~46^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f78233dd44a110c574fe760ad6f9c1e8741a0d00;p=pandora-kernel.git 9p: Skip check for mandatory locks when unlocking While investigating a bug, I came across a possible bug in v9fs. The problem is similar to the one reported for NFS by ASANO Masahiro in http://lkml.org/lkml/2005/12/21/334. v9fs_file_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. Such a lock will be skipped during unlock and the machine will end up with a BUG in locks_remove_flock(). v9fs_file_lock() should skip the check for mandatory locks when unlocking a file. Signed-off-by: Sachin Prabhu Signed-off-by: Eric Van Hensbergen --- Reading git-diff-tree failed