UBUNTU: SAUCE: NFSv4: Ensure that we check lock exclusive/shared type against open...
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 19 Apr 2012 09:45:03 +0000 (10:45 +0100)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Thu, 19 Apr 2012 13:46:01 +0000 (06:46 -0700)
commit72fdd2d68ffd423ccea99360e56d9f93e8bf461c
tree817b752efd2e4fd8c83954f75e5bd08580db6c70
parente0f4966451b815018a75ac6f7a2503da5573ae05
UBUNTU: SAUCE: NFSv4: Ensure that we check lock exclusive/shared type against open modes

BugLink: http://bugs.launchpad.net/bugs/974664

Since we may be simulating flock() locks using NFS byte range locks,
we can't rely on the VFS having checked the file open mode for us.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
(cherry picked from commit 5de4815015e550bdd33f39650554325540356f0c git://git.linux-nfs.org/projects/trondmy/linux-nfs.git)

Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
fs/nfs/nfs4proc.c