aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cpumask.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-03-12 11:30:04 -0700
committerTejun Heo <tj@kernel.org>2013-03-12 11:30:04 -0700
commit8719dceae2f98a578507c0f6b49c93f320bd729c (patch)
tree3132f4c6ed84ec893bcad3aaec230fa78cede95d /include/linux/cpumask.h
parentworkqueue: make it clear that WQ_DRAINING is an internal flag (diff)
downloadlinux-dev-8719dceae2f98a578507c0f6b49c93f320bd729c.tar.xz
linux-dev-8719dceae2f98a578507c0f6b49c93f320bd729c.zip
workqueue: reject adjusting max_active or applying attrs to ordered workqueues
Adjusting max_active of or applying new workqueue_attrs to an ordered workqueue breaks its ordering guarantee. The former is obvious. The latter is because applying attrs creates a new pwq (pool_workqueue) and there is no ordering constraint between the old and new pwqs. Make apply_workqueue_attrs() and workqueue_set_max_active() trigger WARN_ON() if those operations are requested on an ordered workqueue and fail / ignore respectively. Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Diffstat (limited to 'include/linux/cpumask.h')
0 files changed, 0 insertions, 0 deletions