Commit 4360e736 authored by Trond Myklebust's avatar Trond Myklebust Committed by Ben Hutchings

NFSv4: nfs4_locku_done must release the sequence id

commit 2b1bc308 upstream.

If the state recovery machinery is triggered by the call to
nfs4_async_handle_error() then we can deadlock.
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent d6d5a851
...@@ -4150,6 +4150,7 @@ static void nfs4_locku_done(struct rpc_task *task, void *data) ...@@ -4150,6 +4150,7 @@ static void nfs4_locku_done(struct rpc_task *task, void *data)
if (nfs4_async_handle_error(task, calldata->server, NULL) == -EAGAIN) if (nfs4_async_handle_error(task, calldata->server, NULL) == -EAGAIN)
rpc_restart_call_prepare(task); rpc_restart_call_prepare(task);
} }
nfs_release_seqid(calldata->arg.seqid);
} }
static void nfs4_locku_prepare(struct rpc_task *task, void *data) static void nfs4_locku_prepare(struct rpc_task *task, void *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment