OSDN Git Service

NFSv4: Ensure the delegation cred is pinned when we call delegreturn
authorTrond Myklebust <trondmy@gmail.com>
Thu, 13 Feb 2020 19:51:07 +0000 (14:51 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 13 Feb 2020 21:23:02 +0000 (16:23 -0500)
commit5d63944f8206a80636ae8cb4b9107d3b49f43d37
tree2ce4358837e2bc7fe3bbf34faae0146bb034db6e
parent8c75593c6eee0f661ddf25dfde0e6ad2a84be7a9
NFSv4: Ensure the delegation cred is pinned when we call delegreturn

Ensure we don't release the delegation cred during the call to
nfs4_proc_delegreturn().

Fixes: ee05f456772d ("NFSv4: Fix races between open and delegreturn")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/delegation.c