summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/sched.c
diff options
context:
space:
mode:
authorTrond Myklebust2008-02-20 02:04:20 +0100
committerTrond Myklebust2008-02-26 06:40:33 +0100
commit383ba71938519959be8e0b598ec658f0c211ff45 (patch)
tree01eb0155676fe69d40f01dc137ea3be952d88997 /net/sunrpc/sched.c
parentNFS: Fix an f_mode/f_flags confusion in fs/nfs/write.c (diff)
downloadkernel-qcow2-linux-383ba71938519959be8e0b598ec658f0c211ff45.tar.gz
kernel-qcow2-linux-383ba71938519959be8e0b598ec658f0c211ff45.tar.xz
kernel-qcow2-linux-383ba71938519959be8e0b598ec658f0c211ff45.zip
NFS: Fix a deadlock with lazy umount
We can't allow rpc callback functions like task->tk_ops->rpc_call_prepare() and task->tk_ops->rpc_call_done() to call mntput() in any way, since that will cause a deadlock when the call to rpc_shutdown_client() attempts to wait on 'task' to complete. We can avoid the above deadlock by moving calls to mntput to task->tk_ops->rpc_release() callback, since at that time the task will be marked as completed, and so rpc_shutdown_client won't attempt to wait on it. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/sched.c')
0 files changed, 0 insertions, 0 deletions