Re: [Query] Preemption (hogging) of the work handler

From: Greg Kroah-Hartman
Date: Wed Jul 13 2016 - 19:38:46 EST


On Wed, Jul 13, 2016 at 04:18:58PM -0700, Viresh Kumar wrote:
> > Are all of those messages printed actually useful?
>
> Hmm, maybe not. But that's not the point I was trying to raise, as I
> earlier mentioned :)
>
> We have a problem with asynchronous printing after disabling
> interrupts on the last running CPU, and we are trying to disable that
> from suspend_console(), because we already have a function to call
> this from.

Note, this problem has also been seen in "the wild" in a number of
3.10-based systems where a printk message happens right when suspend is
happening. If we are unlucky, it hits, causing a watchdog to trigger
and the system is reset. My personal phone happens to be one of those
"unlucky" ones and is reset every other day or so due to this bug :(

So yes, lots of printk() messages will cause this to be hit more often,
like in the system that Viresh is working on here. But it will also
trigger on "normal" systems as well, just much more infrequently.

thanks,

greg k-h