|
@@ -2442,17 +2442,14 @@ static void nfs41_check_delegation_stateid(struct nfs4_state *state)
|
|
|
}
|
|
|
|
|
|
nfs4_stateid_copy(&stateid, &delegation->stateid);
|
|
|
- if (test_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) {
|
|
|
+ if (test_bit(NFS_DELEGATION_REVOKED, &delegation->flags) ||
|
|
|
+ !test_and_clear_bit(NFS_DELEGATION_TEST_EXPIRED,
|
|
|
+ &delegation->flags)) {
|
|
|
rcu_read_unlock();
|
|
|
nfs_finish_clear_delegation_stateid(state, &stateid);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (!test_and_clear_bit(NFS_DELEGATION_TEST_EXPIRED, &delegation->flags)) {
|
|
|
- rcu_read_unlock();
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
cred = get_rpccred(delegation->cred);
|
|
|
rcu_read_unlock();
|
|
|
status = nfs41_test_and_free_expired_stateid(server, &stateid, cred);
|