Re: [PATCH rcu 11/12] torture: Flush printk() buffers before powering off

From: Paul E. McKenney
Date: Mon Jun 20 2022 - 19:28:56 EST


On Tue, Jun 21, 2022 at 01:29:04AM +0206, John Ogness wrote:
> 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>

Thank you, John!

But given Petr's and your recent changes that are now in mainline, is
this still really needed? (Tests now pass without it, though tests can
of course be misleading.)

Thanx, Paul