Files
twx-linux/include/linux
Tejun Heo f9636c9bdd workqueue: implicit ordered attribute should be overridable
commit 0a94efb5ac upstream.

5c0338c687 ("workqueue: restore WQ_UNBOUND/max_active==1 to be
ordered") automatically enabled ordered attribute for unbound
workqueues w/ max_active == 1.  Because ordered workqueues reject
max_active and some attribute changes, this implicit ordered mode
broke cases where the user creates an unbound workqueue w/ max_active
== 1 and later explicitly changes the related attributes.

This patch distinguishes explicit and implicit ordered setting and
overrides from attribute changes if implict.

Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: 5c0338c687 ("workqueue: restore WQ_UNBOUND/max_active==1 to be ordered")
Cc: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-11 08:49:37 -07:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-11-11 23:23:02 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-03-22 12:43:35 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-06-14 15:06:00 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-10-07 18:46:30 -07:00
…
…
…
…
…
2017-08-06 18:59:43 -07:00
…
2017-07-15 12:16:11 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-05-14 14:00:22 +02:00
…
…
2017-07-12 15:01:02 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-06-14 15:06:00 +02:00
…
…
2017-08-06 18:59:43 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-09-24 10:48:18 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-10-20 15:51:28 +11:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-09-27 12:33:47 +02:00
…
…
…
…
…
…
…
…
…
2017-06-24 07:11:18 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-10-19 11:36:22 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-10-14 11:36:59 -07:00
…
…
…
…
…
…
…
…
…
2016-09-27 21:52:00 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-10-05 18:23:36 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-01-19 20:17:59 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-04-21 09:31:21 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-09-30 10:54:03 +02:00
…
…
…
…
…
…
…
…
…
…