From: Tejun Heo Subject: Re: [RFC PATCH] freezer: allow killing of frozen tasks Date: Tue, 20 Aug 2013 08:22:00 -0400 Message-ID: <20130820122200.GB3926@htj.dyndns.org> References: <5917186.DMyAa9ofOj@amdc1032> <4596920.E6jI568rc1@vostro.rjw.lan> <20130820121819.GA3926@htj.dyndns.org> <37238430.gCktWD5jr4@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-qc0-f180.google.com ([209.85.216.180]:34018 "EHLO mail-qc0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989Ab3HTMWF (ORCPT ); Tue, 20 Aug 2013 08:22:05 -0400 Content-Disposition: inline In-Reply-To: <37238430.gCktWD5jr4@vostro.rjw.lan> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: "Rafael J. Wysocki" Cc: Bartlomiej Zolnierkiewicz , Pavel Machek , linux-pm@vger.kernel.org, Kyungmin Park , LKML , Colin Cross On Tue, Aug 20, 2013 at 02:30:18PM +0200, Rafael J. Wysocki wrote: > > 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? Even for userland tasks, we don't know where the task is stuck at. I think there are enough freeze points in the kernel which are in the middle of something which can be used by userland tasks excuting some syscall. We need to collect all those sites into well defined trap points before doing this. Thanks. -- tejun