]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: Remove outdated comment about exceptional workers in unbind_workers()
authorLai Jiangshan <laijs@linux.alibaba.com>
Tue, 7 Dec 2021 07:35:39 +0000 (15:35 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 9 Dec 2021 22:16:08 +0000 (12:16 -1000)
commit202a4775ab867116c69077ec57c289dc953af28b
tree7d99333c15fe2b219065cd264bc0d22fc734d2ae
parent3fec2573fc5f910283062f5ab152ee965438ef88
workqueue: Remove outdated comment about exceptional workers in unbind_workers()

Long time before, workers are not ALL bound after CPU_ONLINE, they can
still be running in other CPUs before self rebinding.

But the commit 8795de177901 ("workqueue: directly restore CPU affinity
of workers from CPU_ONLINE") makes rebind_workers() bind them all.

So all workers are on the CPU before the CPU is down.

And the comment in unbind_workers() refers to the workers "which are
still executing works from before the last CPU down" is outdated.
Just removed it.

Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c