workqueue: Factor out assign_rescuer_work()

[ Upstream commit 99ed6f62a4 ]

Move the code to assign work to rescuer and assign_rescuer_work().

Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Stable-dep-of: e5a30c303b ("workqueue: Process rescuer work items one-by-one using a cursor")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Lai Jiangshan 2025-11-21 22:57:14 +08:00 • committed by Greg Kroah-Hartman
commit 932c36b813