login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
18
Re: [RFC][PATCH -mm] Freezer: Do not allow freezing processes to clear TIF_SIGPENDING
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Nigel Cunningham <nigel@...>
To: Rafael J. Wysocki <rjw@...>
Cc: LKML <linux-kernel@...>, Oleg Nesterov <oleg@...>, Pavel Machek <pavel@...>, pm list <linux-pm@...>
Subject:
Re: [RFC][PATCH -mm] Freezer: Do not allow freezing processes to clear TIF_SIGPENDING
Date: Thursday, October 18, 2007 - 6:09 pm
Hi. On Friday 19 October 2007 08:22:35 Rafael J. Wysocki wrote:
quoted text
> From: Rafael J. Wysocki <rjw@sisk.pl> > > Do not allow processes to clear their TIF_SIGPENDING if TIF_FREEZE is set, > to prevent them from racing with the freezer (like mysqld does, for
example).
quoted text
> > Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Nigel Cunningham <nigel@suspend2.net>
quoted text
> --- > kernel/signal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Index: linux-2.6.23-mm1/kernel/signal.c > =================================================================== > --- linux-2.6.23-mm1.orig/kernel/signal.c > +++ linux-2.6.23-mm1/kernel/signal.c > @@ -124,7 +124,7 @@ void recalc_sigpending_and_wake(struct t > > void recalc_sigpending(void) > { > - if (!recalc_sigpending_tsk(current)) > + if (!recalc_sigpending_tsk(current) && !freezing(current)) > clear_thread_flag(TIF_SIGPENDING); > > } >
-- Nigel, Michelle, Alisdair and ____________ Cunningham 5 Mitchell Street Cobden 3266 Victoria, Australia -
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 -mm] Freezer: Do not allow freezing processes to...
, Rafael J. Wysocki
, (Thu Oct 18, 6:22 pm)
Re: [RFC][PATCH -mm] Freezer: Do not allow freezing processe...
, Pavel Machek
, (Fri Oct 19, 3:55 am)
Re: [RFC][PATCH -mm] Freezer: Do not allow freezing processe...
, Rafael J. Wysocki
, (Fri Oct 19, 5:34 pm)
Re: [RFC][PATCH -mm] Freezer: Do not allow freezing processe...
, Nigel Cunningham
, (Thu Oct 18, 6:09 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Linus Torvalds
Linux 2.6.21
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
Con Kolivas
Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2
Andrew Morton
echo mem > /sys/power/state
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [GIT]: Networking
Michael S. Tsirkin
Re: [RFC PATCH v2 03/19] vbus: add connection-client helper infrastructure
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
675 guests
online.
Online users
manorepo
Syndicate