From: Tejun Heo Date: Tue, 2 Apr 2013 02:08:06 +0000 (-0700) Subject: writeback: expose the bdi_wq workqueue X-Git-Tag: upstream/snapshot3+hdmi~5147^2~6^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5c872ddb7083c7909fb76a170c3807e04564bb3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Cc: Jens Axboe Cc: Fengguang Wu Cc: Jeff Moyer Cc: Kay Sievers Cc: Greg Kroah-Hartman --- diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 2857d4f..5025174 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -259,7 +259,7 @@ static int __init default_bdi_init(void) int err; bdi_wq = alloc_workqueue("writeback", WQ_MEM_RECLAIM | WQ_FREEZABLE | - WQ_UNBOUND, 0); + WQ_UNBOUND | WQ_SYSFS, 0); if (!bdi_wq) return -ENOMEM;