From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
Nigel Cunningham <nigel@nigel.suspend2.net>,
Oleg Nesterov <oleg@tv-sign.ru>, Pavel Machek <pavel@ucw.cz>
Subject: [PATCH -mm 3/5] Freezer: Prevent new tasks from inheriting TIF_FREEZE set
Date: Wed, 18 Jul 2007 09:33:31 +0200 [thread overview]
Message-ID: <200707180933.32080.rjw@sisk.pl> (raw)
In-Reply-To: <200707180929.31511.rjw@sisk.pl>
From: Rafael J. Wysocki <rjw@sisk.pl>
Tasks should go to the refrigerator only if explicitly requested to do that by
the freezer and not as a result of inheriting the TIF_FREEZE flag set from the
parent. Make it happen.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
---
kernel/fork.c | 1 +
1 file changed, 1 insertion(+)
Index: linux-2.6.22-rc6-mm1/kernel/fork.c
===================================================================
--- linux-2.6.22-rc6-mm1.orig/kernel/fork.c 2007-07-11 20:48:04.000000000 +0200
+++ linux-2.6.22-rc6-mm1/kernel/fork.c 2007-07-11 20:50:42.000000000 +0200
@@ -932,6 +932,7 @@ static inline void copy_flags(unsigned l
if (!(clone_flags & CLONE_PTRACE))
p->ptrace = 0;
p->flags = new_flags;
+ clear_freeze_flag(p);
}
asmlinkage long sys_set_tid_address(int __user *tidptr)
next prev parent reply other threads:[~2007-07-18 7:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-18 7:29 [PATCH -mm 0/5] Freezer update Rafael J. Wysocki
2007-07-18 7:30 ` [PATCH -mm 1/5] Freezer: Document relationship with memory shrinking Rafael J. Wysocki
2007-07-18 7:40 ` Nigel Cunningham
2007-07-18 7:32 ` [PATCH -mm 2/5] Freezer: Do not sync filesystems from freeze_processes Rafael J. Wysocki
2007-07-18 7:33 ` Rafael J. Wysocki [this message]
2007-07-18 7:41 ` [PATCH -mm 3/5] Freezer: Prevent new tasks from inheriting TIF_FREEZE set Nigel Cunningham
2007-07-18 7:37 ` [PATCH -mm 4/5] Freezer: Introduce freezer-firendly waiting macros Rafael J. Wysocki
2007-07-18 7:39 ` [PATCH -mm 5/5] Freezer: Do not send signals to kernel threads Rafael J. Wysocki
2007-07-18 7:46 ` [PATCH -mm 0/5] Freezer update Nigel Cunningham
2007-07-18 8:03 ` Andrew Morton
2007-07-18 8:44 ` Rafael J. Wysocki
2007-07-21 10:56 ` Pavel Machek
2007-07-19 16:30 ` Josh Boyer
2007-07-19 17:03 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200707180933.32080.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nigel@nigel.suspend2.net \
--cc=oleg@tv-sign.ru \
--cc=pavel@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox