Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751374Ab3HTMTp (ORCPT ); Tue, 20 Aug 2013 08:19:45 -0400 Received: from hydra.sisk.pl ([212.160.235.94]:51349 "EHLO hydra.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750967Ab3HTMTo (ORCPT ); Tue, 20 Aug 2013 08:19:44 -0400 From: "Rafael J. Wysocki" To: Tejun Heo Cc: Bartlomiej Zolnierkiewicz , Pavel Machek , linux-pm@vger.kernel.org, Kyungmin Park , LKML , Colin Cross Subject: Re: [RFC PATCH] freezer: allow killing of frozen tasks Date: Tue, 20 Aug 2013 14:30:18 +0200 Message-ID: <37238430.gCktWD5jr4@vostro.rjw.lan> User-Agent: KMail/4.9.5 (Linux/3.11.0-rc5+; KDE/4.9.5; x86_64; ; ) In-Reply-To: <20130820121819.GA3926@htj.dyndns.org> References: <5917186.DMyAa9ofOj@amdc1032> <4596920.E6jI568rc1@vostro.rjw.lan> <20130820121819.GA3926@htj.dyndns.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1715 Lines: 38 On Tuesday, August 20, 2013 08:18:19 AM Tejun Heo wrote: > Hello, > > On Tue, Aug 20, 2013 at 02:23:32PM +0200, Rafael J. Wysocki wrote: > > On Tuesday, August 20, 2013 01:20:03 PM Bartlomiej Zolnierkiewicz wrote: > > > Change __refrigerator() to allow SIGKILL signal handling during > > > the frozen state (by setting task to a TASK_KILLABLE state instead > > > of TASK_UNINTERRUPTIBLE one before entering sleep) and make tasks > > > leave __refrigerator() upon receiving such signal. > > > > > > These changes allow frozen tasks to be killed immediately without > > > the need to thaw them first. > > > > > > Signed-off-by: Bartlomiej Zolnierkiewicz > > > Signed-off-by: Kyungmin Park > > > > Well, it doesn't sound like an entirely bad idea to me, but I'd like to know > > what Colin and Tejun (CCed now) think about it. > > The problem is that we really don't know where each task is frozen in > the kernel so don't know what happens after the task leaves the > freezer is safe whether it's dying or not. We don't have any rules > restricting where a freeze point should be and a task may do any > operation between freezer and actual exit. > > So, I don't think we can simply turn TASK_UNITERRUPTIBLE to > TASK_KILLABLE at this point. We really need to strictly define where > a task can freeze before being able to do anything like this. But we could do that for user space tasks I suppose? Rafael -- 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/