Re: [PATCH printk v3 11/40] um: kmsg_dumper: use srcu console list iterator

2022-11-09 Thread Petr Mladek
On Mon 2022-11-07 15:22:09, John Ogness wrote: > Rather than using the console_lock to guarantee safe console list > traversal, use srcu console list iteration. It might be obvious. But I would add: "It allows to dump the messages even when console_lock() is blocked during panic()." It will help

[PATCH printk v3 11/40] um: kmsg_dumper: use srcu console list iterator

2022-11-07 Thread John Ogness
Rather than using the console_lock to guarantee safe console list traversal, use srcu console list iteration. Signed-off-by: John Ogness --- arch/um/kernel/kmsg_dump.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/um/kernel/kmsg_dump.c b/arch/um/kernel/kmsg