Commit 34a08ae
workqueue: implicit ordered attribute should be overridable
commit 0a94efb5acbb6980d7c9ab604372d93cd507e4d8 upstream.
5c0338c68706 ("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: 5c0338c68706 ("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>1 parent 0c78704 commit 34a08ae
2 files changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| |||
408 | 409 | | |
409 | 410 | | |
410 | 411 | | |
411 | | - | |
| 412 | + | |
| 413 | + | |
412 | 414 | | |
413 | 415 | | |
414 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3647 | 3647 | | |
3648 | 3648 | | |
3649 | 3649 | | |
3650 | | - | |
3651 | | - | |
| 3650 | + | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
| 3655 | + | |
3652 | 3656 | | |
3653 | 3657 | | |
3654 | 3658 | | |
| |||
4032 | 4036 | | |
4033 | 4037 | | |
4034 | 4038 | | |
4035 | | - | |
| 4039 | + | |
4036 | 4040 | | |
4037 | 4041 | | |
4038 | 4042 | | |
4039 | 4043 | | |
4040 | 4044 | | |
4041 | 4045 | | |
| 4046 | + | |
4042 | 4047 | | |
4043 | 4048 | | |
4044 | 4049 | | |
| |||
5164 | 5169 | | |
5165 | 5170 | | |
5166 | 5171 | | |
5167 | | - | |
| 5172 | + | |
5168 | 5173 | | |
5169 | 5174 | | |
5170 | 5175 | | |
| |||
0 commit comments