Skip to content

RFC improve printk reliability

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7arch, early_printk: Consolidate early_printk() implementationsarch/arm/kernel/early_printk.c arch/blackfin/kernel/early_printk.c arch/microblaze/kernel/early_printk.c +12 more+76 -1103 replies
2/7lockdep: Provide early_printk() supportkernel/lockdep.c+252 -2360 replies
3/7printk, lockdep: Remove lockdep_off() usagekernel/printk.c+0 -20 replies
4/7printk: Rework printk recursionkernel/printk.c+41 -380 replies
5/7semaphore: Pull wakeup out from under sem->lockkernel/semaphore.c+25 -210 replies
6/7printk: Poke printk extra hardinclude/linux/sched.h init/main.c kernel/sched/core.c +1 more+33 -07 replies
7/7serial, 8250: Mostly avoid wakeups from under port->lockdrivers/tty/serial/8250.c+50 -124 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchMike FrysingerDavid S. Miller
1/7A-b A-b
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC][PATCH 0/7] improve printk reliability

Hi,

So these are my current efforts to make my own console output more reliable. I've hit every deadlock described in this series and a few more.

With these patches applied I can printk() and WARN() from inside scheduler context and not have my machine deadlock, even without the aid of early_printk().

While I'll go an remove the sole printk() I found in the scheduler so that we don't have to rely on the console doing this, it is good to have a reliable console that can do this.

As it stands some of the patches, the semaphore one in particular, are really too ugly to live so I won't push those but wanted to share anyway.

Debugging this was 'fun', and I really hope to not have to do it again :-)