kthread: Convert worker lock to raw spinlock
authorJulia Cartwright <julia@ni.com>
Tue, 12 Feb 2019 16:25:53 +0000 (17:25 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 28 Feb 2019 10:18:38 +0000 (11:18 +0100)
commitfe99a4f4d6022ec92f9b52a5528cb9b77513e7d1
tree87e1bdb98c37e47aab67bf52170fe4a61ca3bde1
parentc89d92eddfad11e912fb506f85e1796064a9f9d2
kthread: Convert worker lock to raw spinlock

In order to enable the queuing of kthread work items from hardirq context
even when PREEMPT_RT_FULL is enabled, convert the worker spin_lock to a
raw_spin_lock.

This is only acceptable to do because the work performed under the lock is
well-bounded and minimal.

Reported-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Reported-by: Tim Sander <tim@krieglstein.org>
Signed-off-by: Julia Cartwright <julia@ni.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Link: https://lkml.kernel.org/r/20190212162554.19779-1-bigeasy@linutronix.de
include/linux/kthread.h
kernel/kthread.c