]> git.baikalelectronics.ru Git - kernel.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)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 27 Sep 2016 18:32:12 +0000 (14:32 -0400)
commitdef1f8cac6d2939b1ddbd802a578c35a42eff5ec
tree5a8f6235ea4a2d5d4cfe8ad756f0850b651f8eb3
parent7f13968794465bdc27a8e4b5099ac8f08568f496
NFSv4: Don't report revoked delegations as valid in nfs_have_delegation()

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

Fixes: 277ef18b07a3 ("NFSv4: Fix races between nfs_remove_bad_delegation()...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: stable@vger.kernel.org # v3.19+
Tested-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/delegation.c