From: J. Bruce Fields Date: Fri, 20 Aug 2010 22:09:31 +0000 (-0400) Subject: nfsd4: fix downgrade/lock logic X-Git-Tag: v2.6.36-rc3~14^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d94784293096c0a46897acdb83be5abd9278ece;p=pandora-kernel.git nfsd4: fix downgrade/lock logic If we already had a RW open for a file, and get a readonly open, we were piggybacking on the existing RW open. That's inconsistent with the downgrade logic which blows away the RW open assuming you'll still have a readonly open. Also, make sure there is a readonly or writeonly open available for locking, again to prevent bad behavior in downgrade cases when any RW open may be lost. Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed