Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rafael J. Wysocki <rjw@...>
Cc: LKML <linux-kernel@...>, Andrew Morton <akpm@...>, Gautham R Shenoy <ego@...>, Linus Torvalds <torvalds@...>, Oleg Nesterov <oleg@...>, Pavel Machek <pavel@...>
Date: Monday, May 28, 2007 - 5:46 am

Hello!

In reply to your more recent message, I had looked but not tried, so
didn't feel in a position to reply yet.

On Sun, 2007-05-27 at 00:12 +0200, Rafael J. Wysocki wrote:

Well, that looks good, for a start :)

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

s/transision/transition
=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Given the clearing of the flag above, should we just have a
set_unfreezeable here that's used above (and potentially elsewhere)...
(reads more)... or more generic set_[un]freezeable(task_struct *p)
routines that could also be used in copy_flags below?

 }
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

I'm the one who is confused, aren't I? If I'm reading this right,
io_apic used to be frozen. After this patch, it will not be frozen. If
that's the intended behaviour, shouldn't this be two patches - one to
make kernel threads unfreezeable by default, and one to make threads
that were formerly freezeable unfreezeable?

[...]

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Perhaps it would be good to keep a variant of this question, along the
lines of:

Q: I have a kernel thread that needs to be frozen during hibernation.
How do I make that happen?

Regards,

Nigel
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable ..., Rafael J. Wysocki, (Sat May 26, 6:12 pm)
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreeza..., Rafael J. Wysocki, (Mon May 28, 2:11 pm)
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreeza..., Rafael J. Wysocki, (Tue May 29, 8:15 am)
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreeza..., Rafael J. Wysocki, (Tue May 29, 5:55 pm)
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreeza..., Rafael J. Wysocki, (Tue May 29, 6:13 pm)
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreeza..., Nigel Cunningham, (Mon May 28, 5:46 am)
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreeza..., Rafael J. Wysocki, (Mon May 28, 2:17 pm)
[RFC][PATCH -mm] Freezer: Make kernel threads nonfreezable b..., Rafael J. Wysocki, (Wed May 30, 6:01 pm)
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreeza..., Rafael J. Wysocki, (Mon May 28, 6:51 pm)
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreeza..., Rafael J. Wysocki, (Mon May 28, 4:09 am)
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreeza..., Rafael J. Wysocki, (Mon May 28, 2:11 pm)