mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 08:09:56 +00:00
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: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
457a50424b
commit
b57562087b
@ -1190,7 +1190,8 @@ bool nfs4_refresh_delegation_stateid(nfs4_stateid *dst, struct inode *inode)
|
||||
rcu_read_lock();
|
||||
delegation = rcu_dereference(NFS_I(inode)->delegation);
|
||||
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;
|
||||
ret = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user