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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 16 Jan 2013 01:13:19 +0000 (01:13 +0000)
commitc45475d04b2fc3edb8a3197ac78987afb2ca42e5
treebb06ca7d482200f51ba165ca20f125a08e91bd9e
parent66ebe467a6dbbd0b3917ef6ad1bd4930f9b8185d
SUNRPC: Ensure that we free the rpc_task after cleanups are done

commit c6567ed1402c55e19b012e66a8398baec2a726f3 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: Ben Hutchings <ben@decadent.org.uk>
net/sunrpc/sched.c