]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Revert "NFS: Move the flock open mode check into nfs_flock()"
authorBenjamin Coddington <bcodding@redhat.com>
Fri, 10 Nov 2017 11:27:49 +0000 (06:27 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 17 Nov 2017 21:43:52 +0000 (16:43 -0500)
commitfcfa447062b2061e11f68b846d61cbfe60d0d604
treeea0a4c4cc3f5edfe9c1bdacebd9d09b379334b4b
parentf02fee227e5f21981152850744a6084ff3fa94ee
NFS: Revert "NFS: Move the flock open mode check into nfs_flock()"

Commit e12937279c8b "NFS: Move the flock open mode check into nfs_flock()"
changed NFSv3 behavior for flock() such that the open mode must match the
lock type, however that requirement shouldn't be enforced for flock().

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Cc: stable@vger.kernel.org # v4.12
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/file.c
fs/nfs/nfs4proc.c