NFSv4.1: Only reap expired delegations
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 26 Jul 2019 13:40:53 +0000 (14:40 +0100)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Aug 2019 02:35:40 +0000 (22:35 -0400)
commitad11408970df79d5f481aa9964e91f183133424c
tree76adb80f2591ef72409fac11d8da6c055a202a10
parent27a30cf64a5cbe2105e4ff9613246b32d584766a
NFSv4.1: Only reap expired delegations

Fix nfs_reap_expired_delegations() to ensure that we only reap delegations
that are actually expired, rather than triggering on random errors.

Fixes: 45870d6909d5a ("NFSv4.1: Test delegation stateids when server...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/delegation.c