mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
synced 2025-09-14 11:19:08 +10:00
Merge branch 'rework/misc-cleanups' into for-linus
This commit is contained in:
commit
9277abd2c1
@ -3740,12 +3740,18 @@ static bool __pr_flush(struct console *con, int timeout_ms, bool reset_on_progre
|
|||||||
|
|
||||||
seq = prb_next_seq(prb);
|
seq = prb_next_seq(prb);
|
||||||
|
|
||||||
|
/* Flush the consoles so that records up to @seq are printed. */
|
||||||
|
console_lock();
|
||||||
|
console_unlock();
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
diff = 0;
|
diff = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hold the console_lock to guarantee safe access to
|
* Hold the console_lock to guarantee safe access to
|
||||||
* console->seq.
|
* console->seq. Releasing console_lock flushes more
|
||||||
|
* records in case @seq is still not printed on all
|
||||||
|
* usable consoles.
|
||||||
*/
|
*/
|
||||||
console_lock();
|
console_lock();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user