summaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-03-12 22:30:05 +0400
committerTejun Heo <tj@kernel.org>2013-03-12 22:37:07 +0400
commit226223ab3c4118ddd10688cc2c131135848371ab (patch)
tree050da70ca30d34cbc9e21f628935e020c4106894 /virt/kvm
parent36b519dfc7b57b8f91940a6e346d9a248e501e0d (diff)
downloadlinux-226223ab3c4118ddd10688cc2c131135848371ab.tar.xz
workqueue: implement sysfs interface for workqueues
There are cases where workqueue users want to expose control knobs to userland. e.g. Unbound workqueues with custom attributes are scheduled to be used for writeback workers and depending on configuration it can be useful to allow admins to tinker with the priority or allowed CPUs. This patch implements workqueue_sysfs_register(), which makes the workqueue visible under /sys/bus/workqueue/devices/WQ_NAME. There currently are two attributes common to both per-cpu and unbound pools and extra attributes for unbound pools including nice level and cpumask. If alloc_workqueue*() is called with WQ_SYSFS, workqueue_sysfs_register() is called automatically as part of workqueue creation. This is the preferred method unless the workqueue user wants to apply workqueue_attrs before making the workqueue visible to userland. v2: Disallow exposing ordered workqueues as ordered workqueues can't be tuned in any way. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions