diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index e7abcf7629b36b883c25eca28f55a6a74413d587..580e37bc3fe2058c57280e0e1d4bfdc9a302ab94 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -2909,7 +2909,8 @@ static int _nfs4_open_and_get_state(struct nfs4_opendata *opendata, } out: - nfs4_sequence_free_slot(&opendata->o_res.seq_res); + if (!opendata->cancelled) + nfs4_sequence_free_slot(&opendata->o_res.seq_res); return ret; }