]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
NFSv4: Don't report revoked delegations as valid in nfs_have_delegation()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 22 Sep 2016 17:38:53 +0000 (13:38 -0400)
committerIshan Mittal <imittal@nvidia.com>
Fri, 6 Jan 2017 10:15:44 +0000 (15:45 +0530)
commit56e5ad4fc1f8853ef6291f45c025b53d1731c916
tree7805356ba2ed4e554f0149ae983f89b6056a3331
parent4670601fe033a6c8cb889733001b8ed84205a267
NFSv4: Don't report revoked delegations as valid in nfs_have_delegation()

commit b3f9e7239074613aa6bdafa4caf7c104fe1e7276 upstream.

If the delegation is revoked, then it can't be used for caching.

Fixes: 869f9dfa4d6d ("NFSv4: Fix races between nfs_remove_bad_delegation()...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Tested-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/delegation.c