printk: Remove lockdep_off() and wakeups -v3
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | printk: Release console_sem after logbuf_lockkernel/ | +21 | 0 replies | |
| 2/4 | lockdep: Fix trace_{soft,hard}irqs_{on,off}() recursionkernel/ | +20 | 1 reply | |
| 3/4 | printk, lockdep: Remove lockdep_off() usageinclude/ kernel/ | +8 | 0 replies | |
| 4/4 | printk: Avoid all wakeups from printkkernel/ | +115 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] printk: Remove lockdep_off() and wakeups -v3
Last iteration of the printk() rework which removes the lockdep_off() hackery and removes the need for printk() to issue wakeups, thereby increasing reliability from variuos contexts.
Patch 0b5e1c5255 from -tip needs to be reverted (or better dropped), due us discovering why doing up() under logbuf_lock was important -- thanks Andrew, Ingo!
This series was tested on a lockdep enabled kernel with the below hack included, which generated a nice splat.
--- kernel/printk.c | 5 +++++ 1 file changed, 5 insertions(+)
kernel/printk.c +5 -0
@@ -930,6 +930,11 @@ asmlinkage int vprintk(const char *fmt,spin_lock (&logbuf_lock); printk_cpu = this_cpu; +if (panic_timeout) { + panic_timeout =0 ; +local_irq_enable (); + } +if (recursion_bug) { recursion_bug =0 ;strcpy (printk_buf, recursion_bug_msg);