Skip to content

Commit 4c8e544

Browse files
trondmypdamschuma-ntap
authored andcommitted
NFSv4.1: Don't check delegations that are already marked as revoked
If the delegation has been marked as revoked, we don't have to test it, because we should already have called FREE_STATEID on it. Signed-off-by: Trond Myklebust <[email protected]> Tested-by: Olek Drokin <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent aa05c87 commit 4c8e544

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fs/nfs/nfs4proc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2423,6 +2423,11 @@ static void nfs41_check_delegation_stateid(struct nfs4_state *state)
24232423
rcu_read_unlock();
24242424
return;
24252425
}
2426+
if (test_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) {
2427+
rcu_read_unlock();
2428+
nfs_finish_clear_delegation_stateid(state);
2429+
return;
2430+
}
24262431

24272432
nfs4_stateid_copy(&stateid, &delegation->stateid);
24282433
cred = get_rpccred(delegation->cred);

0 commit comments

Comments
 (0)