Commit b5756208 authored by Trond Myklebust's avatar Trond Myklebust

NFSv4: fail nfs4_refresh_delegation_stateid() when the delegation was revoked

If the delegation was revoked, we don't want to retry the delegreturn.
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 457a5042
...@@ -1190,7 +1190,8 @@ bool nfs4_refresh_delegation_stateid(nfs4_stateid *dst, struct inode *inode) ...@@ -1190,7 +1190,8 @@ bool nfs4_refresh_delegation_stateid(nfs4_stateid *dst, struct inode *inode)
rcu_read_lock(); rcu_read_lock();
delegation = rcu_dereference(NFS_I(inode)->delegation); delegation = rcu_dereference(NFS_I(inode)->delegation);
if (delegation != NULL && if (delegation != NULL &&
nfs4_stateid_match_other(dst, &delegation->stateid)) { nfs4_stateid_match_other(dst, &delegation->stateid) &&
!test_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) {
dst->seqid = delegation->stateid.seqid; dst->seqid = delegation->stateid.seqid;
ret = true; ret = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment