Thread (40 messages) 40 messages, 5 authors, 2022-11-07

Re: [PATCH printk v2 22/38] serial: kgdboc: document console_lock usage

From: Doug Anderson <dianders@chromium.org>
Date: 2022-10-25 01:18:16
Also in: lkml

Hi,

On Wed, Oct 19, 2022 at 7:56 AM John Ogness [off-list ref] wrote:
kgdboc_earlycon_init() uses the console_lock to ensure that no consoles
are unregistered until the kgdboc_earlycon is setup. This is necessary
because the trapping of the exit() callback assumes that the exit()
callback is not called before the trap is setup.

Explicitly document this non-typical console_lock usage.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
---
 drivers/tty/serial/kgdboc.c | 8 ++++++++
 1 file changed, 8 insertions(+)
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help