Re: [Query] Preemption (hogging) of the work handler
From: Rafael J. Wysocki
Date: Wed Jul 13 2016 - 09:23:43 EST
On Wed, Jul 13, 2016 at 2:57 PM, Sergey Senozhatsky
<sergey.senozhatsky@xxxxxxxxx> wrote:
> 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
Ah OK. That should work for hibernation too.
> am I missing something?
No, I got confused for some reason.
Thanks,
Rafael