summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-29 18:53:23 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-31 15:10:04 -0400
commit2b1bc308f492589f7d49012ed24561534ea2be8c (patch)
tree14268664dd273e746e434fdea95f2ad82dfb1493 /fs
parent2240a9e2d013d8269ea425b73e1d7a54c7bc141f (diff)
downloadlwn-2b1bc308f492589f7d49012ed24561534ea2be8c.tar.gz
lwn-2b1bc308f492589f7d49012ed24561534ea2be8c.zip
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 <Trond.Myklebust@netapp.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/nfs4proc.c1
1 files changed, 1 insertions, 0 deletions
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)