This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Mon Sep 7 02:48:50 2026 Delivery-date: Thu, 31 May 2007 21:25:22 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757337AbXEaVYd (ORCPT ); Thu, 31 May 2007 17:24:33 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:50109 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755124AbXEaVYc convert rfc822-to-8bit (ORCPT ); Thu, 31 May 2007 17:24:32 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by ogre.sisk.pl (Postfix) with ESMTP id 13BCC4912A; Thu, 31 May 2007 23:11:22 +0200 (CEST) Received: from ogre.sisk.pl ([127.0.0.1]) by localhost (ogre.sisk.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04921-01; Thu, 31 May 2007 23:11:21 +0200 (CEST) Received: from [192.168.100.102] (nat-be2.aster.pl [212.76.37.166]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ogre.sisk.pl (Postfix) with ESMTP id 42CE82A9D7; Thu, 31 May 2007 23:11:21 +0200 (CEST) From: "Rafael J. Wysocki" To: Michal Piotrowski , Andrew Morton Subject: [PATCH -mm] Freezer: migration_thread should not be freezable (was: Re: [linux-pm] Re: 2.6.22-rc3-mm1) Date: Thu, 31 May 2007 23:30:08 +0200 User-Agent: KMail/1.9.5 Cc: linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Pavel Machek References: <20070530235823.793f00d9.akpm@linux-foundation.org> <465EE9F2.8080905@googlemail.com> <200705312158.26560.rjw@sisk.pl> In-Reply-To: <200705312158.26560.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-Disposition: inline Message-Id: <200705312330.09157.rjw@sisk.pl> X-Virus-Scanned: amavisd-new at ogre.sisk.pl using MkS_Vir for Linux Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, 31 May 2007 21:58, Rafael J. Wysocki wrote: > On Thursday, 31 May 2007 17:29, Michal Piotrowski wrote: > > Hi, > >=20 > > Andrew Morton napisa=C5=82(a): > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6= =2E22-rc3/2.6.22-rc3-mm1/ > > >=20 > >=20 > > FYI suspend to disk doesn't work anymore on my box, system hangs af= ter "Suspending console(s)" message. > >=20 > > [ 186.297753] Shrinking memory... =08-=08\=08|=08/=08-=08\=08|=08= done (113064 pages freed) > > [ 187.841914] Freed 452256 kbytes in 1.54 seconds (293.67 MB/s) > > [ 187.847730] Suspending console(s) > >=20 > > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3= -mm1/console.log > > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-rc3= -mm1/mm-config >=20 > Hmm, that might be a couple of things, actually. >=20 > To see if the patches directly related to hibernation/suspend cause t= his, can > you please test 2.6.22-rc3 with the patch series at >=20 > http://www.sisk.pl/kernel/hibernation_and_suspend/2.6.22-rc3/patches/ >=20 > applied? Ahem, I broke it. :-( Andrew, the following fix is needed on top of freezer-make-kernel-threads-nonfreezable-by-default.patch --- =46rom: Rafael J. Wysocki migration_thread should not be freezable, or it will break hibernation = and suspend on SMP. Signed-off-by: Rafael J. Wysocki --- kernel/sched.c | 3 --- 1 file changed, 3 deletions(-) Index: linux-2.6.22-rc3/kernel/sched.c =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 --- linux-2.6.22-rc3.orig/kernel/sched.c +++ linux-2.6.22-rc3/kernel/sched.c @@ -5157,13 +5157,10 @@ static int migration_thread(void *data) BUG_ON(rq->migration_thread !=3D current); =20 set_current_state(TASK_INTERRUPTIBLE); - set_freezable(); while (!kthread_should_stop()) { struct migration_req *req; struct list_head *head; =20 - try_to_freeze(); - spin_lock_irq(&rq->lock); =20 if (cpu_is_offline(cpu)) { - 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/