summaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorTrond Myklebust2013-01-11 22:39:51 +0100
committerTrond Myklebust2013-02-01 16:13:48 +0100
commit322b2b9032f4beba6f1c4158852a5a5b9ab841d7 (patch)
tree01e0d696fc636318c63543b46d988876ff329ee4 /fs/nfs/inode.c
parentSUNRPC: Nuke the tk_xprt macro (diff)
downloadkernel-qcow2-linux-322b2b9032f4beba6f1c4158852a5a5b9ab841d7.tar.gz
kernel-qcow2-linux-322b2b9032f4beba6f1c4158852a5a5b9ab841d7.tar.xz
kernel-qcow2-linux-322b2b9032f4beba6f1c4158852a5a5b9ab841d7.zip
Revert "NFS: add nfs_sb_deactive_async to avoid deadlock"
This reverts commit 324d003b0cd82151adbaecefef57b73f7959a469. The deadlock turned out to be caused by a workqueue limitation that has now been worked around in the RPC code (see comment in rpc_free_task). Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index ebeb94ce1b0b..6acc73c80d7f 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -694,10 +694,7 @@ static void __put_nfs_open_context(struct nfs_open_context *ctx, int is_sync)
if (ctx->cred != NULL)
put_rpccred(ctx->cred);
dput(ctx->dentry);
- if (is_sync)
- nfs_sb_deactive(sb);
- else
- nfs_sb_deactive_async(sb);
+ nfs_sb_deactive(sb);
kfree(ctx->mdsthreshold);
kfree(ctx);
}