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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:50:46 +0000 (08:50 -0800)
commitd5b319960ab9e0770b6ecae94045b512cd3029b7
tree77347dd5c93539b00d5196f68023cd1b9453e278
parent65ac5efcd7e36ddf4cbe7d9e7f844a016dba4f7d
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/sched.c