Skip to content

kdb: Fix locking in vkdb_printf()

Petr Mladek lkml 2 versions – Applied

Status from this message: [merged] kdb-call-vkdb_printf-from-vprintk_default-only-when-wanted.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesApplied 3/3
  2. v12 patches 8 repliesSuperseded

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3kdb: Remove unused kdb_event handlinginclude/linux/kdb.h kernel/debug/kdb/kdb_io.c kernel/debug/kdb/kdb_main.c+0 -40 repliesApplied
2/3kdb: Properly synchronize vkdb_printf() calls with other CPUskernel/debug/kdb/kdb_io.c kernel/debug/kdb/kdb_private.h+13 -180 repliesApplied
3/3kdb: Call vkdb_printf() from vprintk_default() only when wantedinclude/linux/kdb.h kernel/debug/kdb/kdb_io.c kernel/printk/printk.c+5 -80 repliesApplied

Reviews trailers per patch

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

PatchDaniel Thompson
1/3
2/3R-b
3/3

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

Read the v2 thread

Cover letter [PATCH v2 0/3] kdb: Fix locking in vkdb_printf()

This patchset fixes some races that I noticed when looked over the kdbd_printf() code. v2 is based on the feedback from Daniel Thompson and Sergey Senozhatsky.

Changes agaist v1:

+ Completely remove kdb_event (Daniel)
+ Avoid using smp_processor_id() (Sergey)
+ Better describe the whole situation in 3rd patch (Daniel)

Petr Mladek (3):
kdb: Remove unused kdb_event handling
kdb: Properly synchronize vkdb_printf() calls with other CPUs
kdb: Call vkdb_printf() from vprintk_default() only when wanted

 include/linux/kdb.h            |  2 +-
 kernel/debug/kdb/kdb_io.c      | 37 +++++++++++++------------------------
 kernel/debug/kdb/kdb_main.c    |  1 -
 kernel/debug/kdb/kdb_private.h |  1 -
 kernel/printk/printk.c         |  3 ++-
 5 files changed, 16 insertions(+), 28 deletions(-)
Signature · 1 line
1.8.5.6