lkml.org 
[lkml]   [2021]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] freezer,sched: Rewrite core freezer logic
On Tue, Jun 15, 2021 at 05:45:39PM +0200, Oleg Nesterov wrote:

> But this reminds me... can't we implement selective wakeups? So that if a
> task T sleeps in state = STOPPED | FROZEN, then ttwu(T, FROZEN) won't wake
> it up, it will only clear FROZEN from T->state. Similarly, ttwu(T, STOPPED)
> will leave this task with state == FROZEN.

All this started because I didn't want to touch the wakeup path for
freezing :/

> See also
>
> https://lore.kernel.org/lkml/20131112162136.GA29065@redhat.com/
> https://lore.kernel.org/lkml/20131113170724.GA17739@redhat.com/
>
> just to remind you that we already discussed TASK_FROZEN a little bit almost
> 10 years ago ;)
>
> What has been shall be, and what has been done is what will be done, and
> there is nothing new under the sun.

Ha!, I had completely forgotten.

\
 
 \ /
  Last update: 2021-06-15 23:36    [W:0.063 / U:1.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site