From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Nesterov Subject: Re: 2.6.21-rc4-mm1: freezing of processes broken Date: Wed, 21 Mar 2007 19:55:34 +0300 Message-ID: <20070321165534.GA476@tv-sign.ru> References: <20070319205623.299d0378.akpm@linux-foundation.org> <1174446834.6665.3.camel@nigel.suspend2.net> <20070321142350.GB78@tv-sign.ru> <200703211545.17919.rjw@sisk.pl> <20070321082029.2a38e09f.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20070321082029.2a38e09f.akpm@linux-foundation.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Andrew Morton Cc: Sukadev Bhattiprolu , "Eric W. Biederman" , Pavel Machek , linux-pm@lists.osdl.org, linux-kernel@vger.kernel.org, Jiri Slaby List-Id: linux-pm@vger.kernel.org On 03/21, Andrew Morton wrote: > > On Wed, 21 Mar 2007 15:45:16 +0100 "Rafael J. Wysocki" wrot= e: > = > > On Wednesday, 21 March 2007 15:23, Oleg Nesterov wrote: > > > > = > > > > Could the freezer code be trying to freeze the idle thread as a res= ult? > > > = > > > Yes. remove-the-likelypid-check-in-copy_process.patch make idle threa= ds > > > visible to for_each_process/do_each_thread. Note also that idle threa= ds > > > have ->mm !=3D NULL. freezer, oom_kill, move_task_off_dead_cpu, etc, = should > > > not see idle threads, but they do now. > > = > > Well, I think this is a good enough reason for asking Andrew to drop th= is > > patch. > = > Or we change the freezer to skip pid=3D=3D0 tasks. I strongly disagree. In that case we should audit all users of for_each_pro= cess. Imho, this change is too dangerous. Actually, I personally think it is very= good that idle threads are special and not visible, imho we should not change th= is. Btw. Rafael, Andrew, what about [PATCH] Make XFS workqueues nonfreezable http://marc.info/?l=3Dlinux-kernel&m=3D117270675922229 , don't you think this should go to 2.6.21 ? Oleg.