]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd572d3f8f937dec53612cc7a10225f0e135c03a6
tree2ce4358837e2bc7fe3bbf34faae0146bb034db6e
parentbcd06f6a6762f8491d15d2f9dfa4ffb7eeb795d4
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: c4b13d8bb821 ("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