summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-29 23:53:23 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-31 20:10:04 +0100
commit2b1bc308f492589f7d49012ed24561534ea2be8c (patch)
tree14268664dd273e746e434fdea95f2ad82dfb1493 /fs/nfs
parentNFSv4.1: We must release the sequence id when we fail to get a session slot (diff)
downloadlinux-2b1bc308f492589f7d49012ed24561534ea2be8c.tar.xz
linux-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/nfs')
-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)