Commit 5c25b5f
Peter Zijlstra
workqueue: Tag bound workers with KTHREAD_IS_PER_CPU
Mark the per-cpu workqueue workers as KTHREAD_IS_PER_CPU.
Workqueues have unfortunate semantics in that per-cpu workers are not
default flushed and parked during hotplug, however a subset does
manual flush on hotplug and hard relies on them for correctness.
Therefore play silly games..
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Tested-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lkml.kernel.org/r/20210121103506.693465814@infradead.org1 parent ac687e6 commit 5c25b5f
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1861 | 1861 | | |
1862 | 1862 | | |
1863 | 1863 | | |
| 1864 | + | |
| 1865 | + | |
1864 | 1866 | | |
1865 | 1867 | | |
1866 | 1868 | | |
| |||
1883 | 1885 | | |
1884 | 1886 | | |
1885 | 1887 | | |
| 1888 | + | |
1886 | 1889 | | |
1887 | 1890 | | |
1888 | 1891 | | |
| |||
4919 | 4922 | | |
4920 | 4923 | | |
4921 | 4924 | | |
4922 | | - | |
| 4925 | + | |
| 4926 | + | |
4923 | 4927 | | |
| 4928 | + | |
4924 | 4929 | | |
4925 | 4930 | | |
4926 | 4931 | | |
| |||
4972 | 4977 | | |
4973 | 4978 | | |
4974 | 4979 | | |
4975 | | - | |
| 4980 | + | |
| 4981 | + | |
4976 | 4982 | | |
4977 | 4983 | | |
| 4984 | + | |
4978 | 4985 | | |
4979 | 4986 | | |
4980 | 4987 | | |
| |||
0 commit comments