login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
May
»
28
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Rafael J. Wysocki <rjw@...>
To: <nigel@...>
Cc: LKML <linux-kernel@...>, Andrew Morton <akpm@...>, Gautham R Shenoy <ego@...>, Linus Torvalds <torvalds@...>, Oleg Nesterov <oleg@...>, Pavel Machek <pavel@...>
Subject:
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreezable by default
Date: Monday, May 28, 2007 - 6:51 pm
On Monday, 28 May 2007 23:26, Nigel Cunningham wrote:
quoted text
> Hi. > > On Mon, 2007-05-28 at 20:17 +0200, Rafael J. Wysocki wrote: > > On Monday, 28 May 2007 11:46, Nigel Cunningham wrote: > > > 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: > > > > 63 files changed, 78 insertions(+), 138 deletions(-) > > > > > > Well, that looks good, for a start :) > > > > > > > Index: linux-2.6.22-rc3/kernel/exit.c > > > > =================================================================== > > > > --- linux-2.6.22-rc3.orig/kernel/exit.c > > > > +++ linux-2.6.22-rc3/kernel/exit.c > > > > @@ -389,6 +389,11 @@ void daemonize(const char *name, ...) > > > > * they would be locked into memory. > > > > */ > > > > exit_mm(current); > > > > + /* > > > > + * We don't want to have TIF_FREEZE set if the system-wide hibernation > > > > + * or suspend transision begins right now. > > > > + */ > > > > + current->flags |= PF_NOFREEZE; > > > > > > s/transision/transition > > > > Thanks, will fix. > > > > > > set_special_pids(1, 1); > > > > proc_clear_tty(current); > > > > Index: linux-2.6.22-rc3/include/linux/freezer.h > > > > =================================================================== > > > > --- linux-2.6.22-rc3.orig/include/linux/freezer.h > > > > +++ linux-2.6.22-rc3/include/linux/freezer.h > > > > @@ -118,6 +118,14 @@ static inline int freezer_should_skip(st > > > > return !!(p->flags & PF_FREEZER_SKIP); > > > > } > > > > > > > > +/* > > > > + * Tell the freezer that the current task should be frozen by it > > > > + */ > > > > +static inline void set_freezable(void) > > > > +{ > > > > + current->flags &= ~PF_NOFREEZE; > > > > +} > > > > + > > > > > > 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? > > > > Yes, I can introduce set_unfreezeable(), although that would be used in > > a couple of places only. > > > > I don't think it's a good idea to have set_[un]freezeable(task_struct *p), > > since only current is allowed to set/unset its flags. > > The copy_flags routine changes another process's flags - that's why I > was suggesting this.
Yes, it does, but I'm dropping the clearing of PF_NOFREEZE from there, not adding anything new. :-) Greetings, Rafael -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
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...
, Pavel Machek
, (Mon May 28, 6:33 am)
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...
, Pavel Machek
, (Tue May 29, 7:31 am)
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...
, Linus Torvalds
, (Tue May 29, 11:01 am)
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreeza...
, Pavel Machek
, (Tue May 29, 8:48 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...
, Nigel Cunningham
, (Tue May 29, 8:59 am)
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
, (Tue May 29, 6:15 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)
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreeza...
, Nigel Cunningham
, (Mon May 28, 5:26 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...
, Nigel Cunningham
, (Mon May 28, 6:54 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...
, Pavel Machek
, (Mon May 28, 6:30 am)
Re: [RFC][PATCH][EXPERIMENTAL] Make kernel threads nonfreeza...
, Rafael J. Wysocki
, (Mon May 28, 2:11 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
KOSAKI Motohiro
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
Faik Uygur
Re: Linux 2.6.21-rc1
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Trent Piepho
[PATCH] [POWERPC] Improve (in|out)_beXX() asm code
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jens Axboe
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
803 guests
online.
Online users
zeekec
mikulasring
Syndicate