From: Trond Myklebust Date: Mon, 29 Oct 2012 22:53:23 +0000 (-0400) Subject: NFSv4: nfs4_locku_done must release the sequence id X-Git-Tag: v3.7-rc4~1^2~8 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=2b1bc308f492589f7d49012ed24561534ea2be8c;p=sfrench%2Fcifs-2.6.git 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 Cc: stable@vger.kernel.org --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index e0423bb5a880..1465364501ba 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -4531,6 +4531,7 @@ static void nfs4_locku_done(struct rpc_task *task, void *data) if (nfs4_async_handle_error(task, calldata->server, NULL) == -EAGAIN) rpc_restart_call_prepare(task); } + nfs_release_seqid(calldata->arg.seqid); } static void nfs4_locku_prepare(struct rpc_task *task, void *data)