Re: [PATCH net] netpoll: run NAPI poll in softirq context to avoid rq->lock self-deadlock

From: Sebastian Andrzej Siewior

Date: Thu Jun 18 2026 - 04:52:23 EST


On 2026-06-17 13:15:04 [+0200], Peter Zijlstra wrote:
>
> Can't we push all the legacy consoles into a single legacy kthread? I
> mean, converting all consoles is of course awesome, but should we really
> wait for that?

That would be

diff --git a/kernel/printk/internal.h b/kernel/printk/internal.h
index 85fbf1801cbe0..c72f8d7027aee 100644
--- a/kernel/printk/internal.h
+++ b/kernel/printk/internal.h
@@ -27,11 +27,7 @@ int devkmsg_sysctl_set_loglvl(const struct ctl_table *table, int write,
* nbcon consoles have had their chance to print the panic messages
* first.
*/
-#ifdef CONFIG_PREEMPT_RT
# define force_legacy_kthread() (true)
-#else
-# define force_legacy_kthread() (false)
-#endif

#ifdef CONFIG_PRINTK

and if I remember correctly it was due to delayed CI output limited to
RT. But this does not fix stable down to 5.10 LTS.

Sebastian