On 2022-06-20, "Paul E. McKenney" <paulmck@xxxxxxxxxx> wrote: > The rcutorture test suite produces quite a bit of console output > at the end of a test. This means that the new printk() kthreads > are likely to be in the process of flushing output at the time of > the torture_shutdown() function's call to kernel_power_off(). > > This commit therefore invokes pr_flush(1000, true) to flush this > pending console output before invoking kernel_power_off(). > > Fixes: 8e274732115f ("printk: extend console_lock for per-console locking") > Cc: John Ogness <john.ogness@xxxxxxxxxxxxx> > Signed-off-by: Paul E. McKenney <paulmck@xxxxxxxxxx> Reviewed-by: John Ogness <john.ogness@xxxxxxxxxxxxx>