workqueue: Interrupted create_worker() is not a repeated event
authorPetr Mladek <pmladek@suse.com>
Tue, 7 Mar 2023 12:53:33 +0000 (13:53 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 17 Mar 2023 22:03:46 +0000 (12:03 -1000)
commit60f540389a5d2df25ddc7ad511b4fa2880dea521
treecafad6e277b1af7640aacbe135dd7108c011de5f
parent3f0ea0b864562c6bd1cee892026067eaea7be242
workqueue: Interrupted create_worker() is not a repeated event

kthread_create_on_node() might get interrupted(). It is rare but realistic.
For example, when an unbound workqueue is allocated in module_init()
callback. It is done in the context of the "modprobe" process. And,
for example, systemd might kill pending processes when switching root
from initrd to the booted system.

The interrupt is a one-off event and the race might be hard to reproduce.
It is always worth printing.

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