workqueue/hotplug: simplify workqueue_offline_cpu()
authorLai Jiangshan <jiangshanlai@gmail.com>
Fri, 1 Dec 2017 14:20:36 +0000 (22:20 +0800)
committerTejun Heo <tj@kernel.org>
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-29091-1-git-send-email-prsood@codeaurora.org

tj: Description update.

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