Re: [PATCH 2/2] Subject: printk: Don't trap random context in infinite log_buf flush
From: Tejun Heo
Date: Wed Nov 08 2017 - 11:28:21 EST
Hello, Steven.
On Wed, Nov 08, 2017 at 11:22:29AM -0500, Steven Rostedt wrote:
> > Oh, I was talking about tweaking the repro, but I'm not sure the above
> > would change anything.
>
> No, it would change an awful lot.
>
> It would cause two printers to access the consoles at the same time,
> which would lead to unpredictable behavior.
Sure, I'll give it a shot later but in the repro there literally is no
context which is safe, so I kinda have a difficult time imagining how
that will make things materially better. Neither of the producers can
get scheduled out no matter they switch back and forth between them or
not, so rcu stalls seem rather unavoidable without introducing an
independent context.
Thanks.
--
tejun