Skip to content

printk: Reduce unnecessary wait times by pr_flush()

Petr Mladek lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 4 repliesIn review

Changes in v2 from the cover letter

+ Split reduction of the pooling time into separate patch.
+ Use jiffies to count the real sleeping time.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2printk: flush consoles before checking progresskernel/printk/printk.c+7 -10 replies
2/2printk: Reduce pr_flush() pooling timekernel/printk/printk.c+13 -131 reply

Reviews trailers per patch

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

PatchJohn Ogness
1/2
2/2R-b

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/2] printk: Reduce unnecessary wait times by pr_flush()

This is an updated version of the patch
https://lore.kernel.org/r/[email protected]

Changes since v1:

+ Split reduction of the pooling time into separate patch.
+ Use jiffies to count the real sleeping time.

Note that my original POC counted jiffies spent in the entire cycle. It would count also the time spent by console_lock() and by flushing the legacy consoles in console_unlock().

The current version counts only the time spent by msleep(1) aka the pooling interval.

John Ogness (1):
printk: flush consoles before checking progress

Petr Mladek (1):
printk: Reduce pr_flush() pooling time

 kernel/printk/printk.c | 34 ++++++++++++++++++++--------------
 1 file changed, 20 insertions(+), 14 deletions(-)
Signature · 1 line
2.35.3