]> git.baikalelectronics.ru Git - kernel.git/commit
vt_ioctl: Remove in_interrupt() check
authorAhmed S. Darwish <a.darwish@linutronix.de>
Mon, 8 Feb 2021 18:16:14 +0000 (19:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Feb 2021 10:45:04 +0000 (11:45 +0100)
commit155f04ad6140d2b553f20a60bcb11aa745ee915e
treebf93cb1f52d21fd877b2218c1f2400c152ad2f67
parent6e45f6a32e0a2bb7947e2da93d7b1cc549a09e41
vt_ioctl: Remove in_interrupt() check

reset_vc() uses a "!in_interrupt()" conditional before resetting the
palettes, which is a blocking operation. Since commit
   fbe6f3cb7b6b8 ("[PATCH] vt: refactor console SAK processing")

all calls are invoked from a workqueue process context, with the
blocking console lock always acquired.

Remove the "!in_interrupt()" check.

Signed-off-by: Ahmed S. Darwish <a.darwish@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lore.kernel.org/r/20210208181615.381861-2-bigeasy@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt_ioctl.c