]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0e97b944e74a6288b6c84925c20e60323ebd4c5
treee258eff89b9c1b72a4c1e6ff136ddd477c8ca9ef
parentea2b641bb5a2ab5b94ce0600b8cbe236392cf930
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