SUNRPC: Ensure that we free the rpc_task after cleanups are done
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 4 Jan 2013 17:23:21 +0000 (12:23 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 4 Jan 2013 17:53:59 +0000 (12:53 -0500)
commitc6567ed1402c55e19b012e66a8398baec2a726f3
treeab6e59ecaacae821c6b6557e33e56a3c6a711803
parente25fbe380c4e3c09afa98bcdcd9d3921443adab8
SUNRPC: Ensure that we free the rpc_task after cleanups are done

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>
Cc: stable@vger.kernel.org
net/sunrpc/sched.c