workqueue/hotplug: simplify workqueue_offline_cpu()
authorLai Jiangshan <[email protected]>
Fri, 1 Dec 2017 14:20:36 +0000 (22:20 +0800)
committerTejun Heo <[email protected]>
Mon, 4 Dec 2017 22:44:11 +0000 (14:44 -0800)
commite8b3f8db7aad99fcc5234fc5b89984ff6620de3d
treea7b870b5b2899297c9a797b467919ae31bd581f4
parentc98a9805096460567404799a7bd3149826affde7
workqueue/hotplug: simplify workqueue_offline_cpu()

Since the recent cpu/hotplug refactoring, workqueue_offline_cpu() is
guaranteed to run on the local cpu which is going offline.

This also fixes the following deadlock by removing work item
scheduling and flushing from CPU hotplug path.

 http://lkml.kernel.org/r/1504764252[email protected]

tj: Description update.

Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
kernel/workqueue.c