mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH printk 0/1] alternate fix for nbcon_cpu_emergency_flush()
@ 2024-07-19 13:48 John Ogness
  2024-07-19 13:48 ` [PATCH printk 1/1] printk: nbcon: do not require migration disabled for nbcon_get_cpu_emergency_nesting() John Ogness
  2024-07-22 14:47 ` [PATCH printk 0/1] alternate fix for nbcon_cpu_emergency_flush() Petr Mladek
  0 siblings, 2 replies; 4+ messages in thread
From: John Ogness @ 2024-07-19 13:48 UTC (permalink / raw)
  To: Petr Mladek
  Cc: Sergey Senozhatsky, Steven Rostedt, Thomas Gleixner,
	linux-kernel, Juri Lelli

Hi Petr,

Currently in linux-next we have commit b955f0eead54 ("printk: nbcon:
Fix nbcon_cpu_emergency_flush() when preemptible"). But as you
pointed out [0], there is no need to disable preemption at all if
we only need to know if the current CPU is in emergency state.

Here is an alternative patch that correctly addresses the issue by
avoiding the migration checks.

Since the previous patch is not yet mainline, perhaps you want to
use this one instead in order to avoid a revert. Up to you.

John Ogness

[0] https://lore.kernel.org/lkml/Zn7b8g1HtuTIAwyi@pathway.suse.cz

John Ogness (1):
  printk: nbcon: do not require migration disabled for
    nbcon_get_cpu_emergency_nesting()

 kernel/printk/nbcon.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)


base-commit: c51cf7315db1392af58b909d1004133f6dbf0bf6
-- 
2.39.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-22 14:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-19 13:48 [PATCH printk 0/1] alternate fix for nbcon_cpu_emergency_flush() John Ogness
2024-07-19 13:48 ` [PATCH printk 1/1] printk: nbcon: do not require migration disabled for nbcon_get_cpu_emergency_nesting() John Ogness
2024-07-22 13:58   ` Petr Mladek
2024-07-22 14:47 ` [PATCH printk 0/1] alternate fix for nbcon_cpu_emergency_flush() Petr Mladek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®