workqueue: Warn when a rescuer could not be created
authorPetr Mladek <pmladek@suse.com>
Tue, 7 Mar 2023 12:53:34 +0000 (13:53 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 17 Mar 2023 22:03:46 +0000 (12:03 -1000)
commit4c0736a76a186e5df2cd2afda3e7a04d2a427d1b
treeee9ee79f1bca32553a91018a05452421f98379ac
parent60f540389a5d2df25ddc7ad511b4fa2880dea521
workqueue: Warn when a rescuer could not be created

Rescuers are created when a workqueue with WQ_MEM_RECLAIM is allocated.
It typically happens during the system boot.

systemd switches the root filesystem from initrd to the booted system
during boot. It kills processes that block the switch for too long.
One of the process might be modprobe that tries to create a workqueue.

These problems are hard to reproduce. Also alloc_workqueue() does not
pass the error code. Make the debugging easier by printing an error,
similar to create_worker().

Signed-off-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c