diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-10-30 02:53:23 +0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-10-31 23:10:04 +0400 |
commit | 2b1bc308f492589f7d49012ed24561534ea2be8c (patch) | |
tree | 14268664dd273e746e434fdea95f2ad82dfb1493 /fs | |
parent | 2240a9e2d013d8269ea425b73e1d7a54c7bc141f (diff) | |
download | linux-2b1bc308f492589f7d49012ed24561534ea2be8c.tar.xz |
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.c | 1 |
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) |