Re: [RFC 5/5] pm: remove kernel thread freezing

From: Jiri Kosina
Date: Tue Oct 03 2017 - 16:51:58 EST


On Tue, 3 Oct 2017, Jiri Kosina wrote:

> > What about the many drivers outside filesystems that use the
> > set_freezable() / try_to_freeze() / wait_event_freezable() API?
>
> Many/most of them are just completely bogus and pointless.

More specifically -- they don't really care at all whether they get
scheduled out exactly at the try_to_freeze() point; they are perfectly
happy being scheduled out at any other scheduling point, and land on
runqueue after the resume has been completed.

Sure, certain drivers need to take action when system is undergoing
hibernation/suspend. But that's what PM callbacks are for, not kthread
hibernation.

--
Jiri Kosina
SUSE Labs