]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFS: Ensure that we free the rpc_task after read and write cleanups are done
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 4 Jan 2013 17:47:04 +0000 (12:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 17:18:38 +0000 (09:18 -0800)
commit25191192f7f136dbad081a19cd72521789268f2a
tree9c03ef32221e344d9da7a843b69b56bfb8a0af90
parentbb3330c18aa9340c600706e60de7d8fdf5260420
NFS: Ensure that we free the rpc_task after read and write cleanups are done

commit 6db6dd7d3fd8f7c765dabc376493d6791ab28bd6 upstream.

This patch ensures that we free the rpc_task after the cleanup callbacks
are done in order to avoid a deadlock problem that can be triggered if
the callback needs to wait for another workqueue item to complete.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Weston Andros Adamson <dros@netapp.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Bruce Fields <bfields@fieldses.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/read.c
fs/nfs/write.c