From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757312AbYEGNyJ (ORCPT ); Wed, 7 May 2008 09:54:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753077AbYEGNxx (ORCPT ); Wed, 7 May 2008 09:53:53 -0400 Received: from palinux.external.hp.com ([192.25.206.14]:41855 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752641AbYEGNxv (ORCPT ); Wed, 7 May 2008 09:53:51 -0400 Date: Wed, 7 May 2008 07:53:34 -0600 From: Matthew Wilcox To: "Rafael J. Wysocki" Cc: pm list , Ingo Molnar , Len Brown , LKML , Pavel Machek , Matt Helsley , Cedric Le Goater , Paul Menage , Andrew Morton , Alan Stern , Liam Howlett Subject: Re: [RFC][PATCH 2/2] Freezer: Try to handle killable tasks Message-ID: <20080507135333.GS19219@parisc-linux.org> References: <200805070003.56387.rjw@sisk.pl> <200805070007.56998.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200805070007.56998.rjw@sisk.pl> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 07, 2008 at 12:07:55AM +0200, Rafael J. Wysocki wrote: > The introduction of TASK_KILLABLE allows the freezer to work in some situation > that it could not handle before. > > Make the freezer handle killable tasks and add try_to_freeze() in some places > where it is safe to freeze a (killable) task. Introduce the > wait_event_killable_freezable() macro to be used wherever the freezing of > a waiting killable task is desirable. Why do you say that TASK_KILLABLE allows the freezer to work in some situations where it couldn't before? If something's using one of the killable functions, it means that it knows how to clean up and unwind gracefully if the task receives a fatal signal. I don't understand what connection there is to the freezer. -- Intel are signing my paycheques ... these opinions are still mine "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step."