]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Don't allow a cached open with a revoked delegation
authorTrond Myklebust <trondmy@gmail.com>
Thu, 31 Oct 2019 22:40:32 +0000 (18:40 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 1 Nov 2019 14:59:26 +0000 (10:59 -0400)
commit10bd8bddd495f8fd89d2a26374438797de9beba5
treefc9a15033a2e3285ca917bd41a01d0503961e89d
parenteed66408a6fe38fffc70bb1c88d31ef869fca950
NFSv4: Don't allow a cached open with a revoked delegation

If the delegation is marked as being revoked, we must not use it
for cached opens.

Fixes: 277ef18b07a3 ("NFSv4: Fix races between nfs_remove_bad_delegation() and delegation return")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/delegation.c
fs/nfs/delegation.h
fs/nfs/nfs4proc.c