NFSv4: Ensure that we check lock exclusive/shared type against open modes
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 18 Apr 2012 16:48:35 +0000 (12:48 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 19 Apr 2012 17:23:08 +0000 (13:23 -0400)
commit55725513b5ef9d462aa3e18527658a0362aaae83
treee258eff89b9c1b72a4c1e6ff136ddd477c8ca9ef
parent05ffe24f5290dc095f98fbaf84afe51ef404ccc5
NFSv4: Ensure that we check lock exclusive/shared type against open modes

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
fs/nfs/nfs4proc.c