Re: [PATCH v3] printk: Add console owner and waiter logic to load balance console writes

From: Steven Rostedt
Date: Fri Nov 03 2017 - 07:55:07 EST


On Fri, 3 Nov 2017 07:54:04 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> The new waiter gets set only if there isn't already a waiter *and*
> there is an owner that is not current (and with the printk_safe_enter I
> don't think that is even needed).
>
> + while (!READ_ONCE(console_waiter))
> + cpu_relax();

I still need to fix the patch. I cut and pasted the bad version. This
should have been:

while (READ_ONCE(console_waiter))
cpu_relax();

-- Steve