Skip to content

Commit 2b1bc30

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
NFSv4: nfs4_locku_done must release the sequence id
If the state recovery machinery is triggered by the call to nfs4_async_handle_error() then we can deadlock. Signed-off-by: Trond Myklebust <[email protected]> Cc: [email protected]
1 parent 2240a9e commit 2b1bc30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfs/nfs4proc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4531,6 +4531,7 @@ static void nfs4_locku_done(struct rpc_task *task, void *data)
45314531
if (nfs4_async_handle_error(task, calldata->server, NULL) == -EAGAIN)
45324532
rpc_restart_call_prepare(task);
45334533
}
4534+
nfs_release_seqid(calldata->arg.seqid);
45344535
}
45354536

45364537
static void nfs4_locku_prepare(struct rpc_task *task, void *data)

0 commit comments

Comments
 (0)