]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NFSv4: Don't send delegation-related share access modes to CLOSE
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 17 Jun 2024 01:21:37 +0000 (21:21 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Jul 2024 17:47:26 +0000 (13:47 -0400)
commitcf453bfe92fd5a2a189305130c5e076b9871ec43
tree046587665455825b3b056893888f7e7f3586606a
parentadb4b42d19aea91826621a8d0bac94cf2c08f8bc
NFSv4: Don't send delegation-related share access modes to CLOSE

When we set the new share access modes for CLOSE in nfs4_close_prepare().
we should only set a mode of NFS4_SHARE_ACCESS_READ, NFS4_SHARE_ACCESS_WRITE
or NFS4_SHARE_ACCESS_BOTH. Currently, we may also be passing in the NFSv4.1
share modes for controlling delegation requests in OPEN, which is wrong.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c