From: J. Bruce Fields Date: Thu, 29 Jul 2010 19:16:59 +0000 (-0400) Subject: nfsd4: fix openmode checking on IO using lock stateid X-Git-Tag: v2.6.36-rc1~496^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02921914170e3b7fea1cd82dac9713685d2de5e2;p=pandora-kernel.git nfsd4: fix openmode checking on IO using lock stateid It is legal to perform a write using the lock stateid that was originally associated with a read lock, or with a file that was originally opened for read, but has since been upgraded. So, when checking the openmode, check the mode associated with the open stateid from which the lock was derived. Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed