writeback: expose the bdi_wq workqueue
authorTejun Heo <tj@kernel.org>
Tue, 2 Apr 2013 02:08:06 +0000 (19:08 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 2 Apr 2013 02:08:06 +0000 (19:08 -0700)
commitb5c872ddb7083c7909fb76a170c3807e04564bb3
tree6daa0f960c87f799ca35a9d87e5c24fccc07ecab
parent839a8e8660b6777e7fe4e80af1a048aebe2b5977
writeback: expose the bdi_wq workqueue

There are cases where userland wants to tweak the priority and
affinity of writeback flushers.  Expose bdi_wq to userland by setting
WQ_SYSFS.  It appears under /sys/bus/workqueue/devices/writeback/ and
allows adjusting maximum concurrency level, cpumask and nice level.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/backing-dev.c