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

From: Sergey Senozhatsky
Date: Wed Jul 13 2016 - 08:57:52 EST


Hello Rafael,

On (07/13/16 14:05), Rafael J. Wysocki wrote:
[..]
> > ah, just saw this. OK, very close to what I sent in another thread, so I
> > guess it will work on your side.
> > let me know if it doesn't, I'll fold it into 0001 and re-spin the series.
> > thanks for your help!
>
> But you need to do an analogous thing for hibernation. Essentially,
> wherever disable_nonboot_cpus() is called.

hibernation() suspends console, and suspend_console() forces printk to
switch to sync mode. resume_console() lets printk to operate in async
mode (if printk was configured to operate in async mode at all).

the patch I'm talking about is:
http://marc.info/?l=linux-kernel&m=146838876027364&w=2

am I missing something?

-ss