vt_ioctl: Remove in_interrupt() check
reset_vc() uses a "!in_interrupt()" conditional before resetting the
palettes, which is a blocking operation. Since commit
8b6312f4dc
("[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>
This commit is contained in:
parent
81004f0bf7
commit
151db8c08c
@ -930,7 +930,6 @@ void reset_vc(struct vc_data *vc)
|
||||
put_pid(vc->vt_pid);
|
||||
vc->vt_pid = NULL;
|
||||
vc->vt_newvt = -1;
|
||||
if (!in_interrupt()) /* Via keyboard.c:SAK() - akpm */
|
||||
reset_palette(vc);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user