Skip to content

Commit

Permalink
NFSv4.1 don't free interrupted slot on open
Browse files Browse the repository at this point in the history
Allow the async rpc task for finish and update the open state if needed,
then free the slot. Otherwise, the async rpc unable to decode the reply.

Signed-off-by: Olga Kornievskaia <[email protected]>
Fixes: ae55e59 ("pnfs: Don't release the sequence slot...")
Cc: [email protected] # v4.18+
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
olgakorn1 authored and Trond Myklebust committed Mar 19, 2019
1 parent 4a9be28 commit 0cb98ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2933,7 +2933,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;
}

Expand Down

0 comments on commit 0cb98ab

Please sign in to comment.