From: NeilBrown Date: Fri, 8 Jul 2005 00:59:27 +0000 (-0700) Subject: [PATCH] nfsd4: check lock type against openmode. X-Git-Tag: v2.6.13-rc3~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c4cd222ee329025840bc2f8cebf71d36c62440c;p=pandora-kernel.git [PATCH] nfsd4: check lock type against openmode. We shouldn't be allowing, e.g., write locks on files not open for read. To enforce this, we add a pointer from the lock stateid back to the open stateid it came from, so that the check will continue to be correct even after the open is upgraded or downgraded. Signed-off-by: Andy Adamson Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed