net/9p: replace p9_poll_task with a work
authorTejun Heo <tj@kernel.org>
Tue, 1 Feb 2011 10:42:43 +0000 (11:42 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 1 Feb 2011 10:42:43 +0000 (11:42 +0100)
commitaa70c585b15f64da6948bdacc7a7692addd65364
tree8ba61c488f8f51e78fdcae273b17e5cbe8c0ae7c
parent61edeeed917958dce5b43134d6704451ddf421fa
net/9p: replace p9_poll_task with a work

Now that cmwq can handle high concurrency, it's more efficient to use
work than a dedicated kthread.  Convert p9_poll_proc() to a work
function for p9_poll_work and make p9_pollwake() schedule it on each
poll event.  The work is sync flushed on module exit.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Cc: Ron Minnich <rminnich@sandia.gov>
Cc: Latchesar Ionkov <lucho@ionkov.net>
Cc: v9fs-developer@lists.sourceforge.net
net/9p/trans_fd.c