workqueue: avoid hard lockups in show_workqueue_state()
authorSergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Thu, 11 Jan 2018 00:53:35 +0000 (09:53 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jan 2018 18:58:18 +0000 (19:58 +0100)
commita6d5930ccf3c746fa737b221d42adb6811945eec
tree90491f4e7ae60bb00d0f8858303ca09f15712f18
parentedd0a403a12186aecd2e04c0a37f983cdf9c5810
workqueue: avoid hard lockups in show_workqueue_state()

commit 62635ea8c18f0f62df4cc58379e4f1d33afd5801 upstream.

show_workqueue_state() can print out a lot of messages while being in
atomic context, e.g. sysrq-t -> show_workqueue_state(). If the console
device is slow it may end up triggering NMI hard lockup watchdog.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/workqueue.c