• Petr Mladek's avatar
    workqueue: Warn when a rescuer could not be created · 4c0736a7
    Petr Mladek authored
    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: default avatarPetr Mladek <pmladek@suse.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    4c0736a7
workqueue.c 174 KB