SUNRPC: Allow the rpc_release() callback to be run on another workqueue
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 20 Feb 2008 01:04:21 +0000 (20:04 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 26 Feb 2008 05:40:34 +0000 (21:40 -0800)
commit32bfb5c0f495dd88ef6bac4b76885d0820563739
tree01adff1612a7aaad148a322b79bc02224e8ca735
parent383ba71938519959be8e0b598ec658f0c211ff45
SUNRPC: Allow the rpc_release() callback to be run on another workqueue

A lot of the work done by the rpc_release() callback is inappropriate for
rpciod as it will often involve things like starting a new rpc call in
order to clean up state after an interrupted NFSv4 open() call, or
calls to mntput(), etc.

This patch allows the caller of rpc_run_task() to specify that the
rpc_release callback should run on a different workqueue than the default
rpciod_workqueue.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/sched.h
net/sunrpc/sched.c