|
@@ -1774,7 +1774,11 @@ static void nfs41_clear_delegation_stateid(struct nfs4_state *state)
|
|
|
* informs us the stateid is unrecognized. */
|
|
|
if (status != -NFS4ERR_BAD_STATEID)
|
|
|
nfs41_free_stateid(server, stateid);
|
|
|
+ nfs_remove_bad_delegation(state->inode);
|
|
|
|
|
|
+ write_seqlock(&state->seqlock);
|
|
|
+ nfs4_stateid_copy(&state->stateid, &state->open_stateid);
|
|
|
+ write_sequnlock(&state->seqlock);
|
|
|
clear_bit(NFS_DELEGATED_STATE, &state->flags);
|
|
|
}
|
|
|
}
|