]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: implement "workqueue.debug_force_rr_cpu" debug feature
authorTejun Heo <tj@kernel.org>
Tue, 9 Feb 2016 22:59:38 +0000 (17:59 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 9 Feb 2016 22:59:38 +0000 (17:59 -0500)
commiteb862cc7295b59bda408f3500be871137c499c62
tree20030c728af441a4efa01c2612be4883bd431115
parentd59ca994f07183b1327137dfd1e7d3f76e8e4f63
workqueue: implement "workqueue.debug_force_rr_cpu" debug feature

Workqueue used to guarantee local execution for work items queued
without explicit target CPU.  The guarantee is gone now which can
break some usages in subtle ways.  To flush out those cases, this
patch implements a debug feature which forces round-robin CPU
selection for all such work items.

The debug feature defaults to off and can be enabled with a kernel
parameter.  The default can be flipped with a debug config option.

If you hit this commit during bisection, please refer to e7ec566d3cc5
("Revert "workqueue: make sure delayed work run in local cpu"") for
more information and ping me.

Signed-off-by: Tejun Heo <tj@kernel.org>
Documentation/kernel-parameters.txt
kernel/workqueue.c
lib/Kconfig.debug