Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751767Ab0FGXed (ORCPT ); Mon, 7 Jun 2010 19:34:33 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:56763 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750834Ab0FGXeb convert rfc822-to-8bit (ORCPT ); Mon, 7 Jun 2010 19:34:31 -0400 MIME-Version: 1.0 In-Reply-To: References: <20100603193045.GA7188@elte.hu> <20100603232302.GA16184@elte.hu> <1275644619.27810.39462.camel@twins> <201006050138.30859.rjw@sisk.pl> Date: Mon, 7 Jun 2010 16:34:29 -0700 Message-ID: Subject: Re: suspend blockers & Android integration From: =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5g?= To: Thomas Gleixner Cc: "Rafael J. Wysocki" , Peter Zijlstra , Ingo Molnar , tytso@mit.edu, Brian Swetland , Neil Brown , Alan Stern , Felipe Balbi , LKML , Florian Mickler , Linux OMAP Mailing List , Linux PM , Alan Cox , James Bottomley , Linus Torvalds , Kevin Hilman , "H. Peter Anvin" , Arjan van de Ven Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2269 Lines: 55 2010/6/6 Thomas Gleixner : > On Sat, 5 Jun 2010, Arve Hj?nnev?g wrote: >> 2010/6/5 Thomas Gleixner : >> > On Sat, 5 Jun 2010, Arve Hj?nnev?g wrote: >> >> 2010/6/5 Thomas Gleixner : >> >> > On Sat, 5 Jun 2010, Arve Hj?nnev?g wrote: >> >> >> >> > That download might take a minute or two, but that's not an >> >> >> >> > justification for the crapplication to run unconfined and prevent >> >> >> >> > lower power states. >> >> >> >> > >> >> >> >> >> >> >> >> I agree, but this is not a simple problem to solve. >> >> >> > >> >> >> > Not with suspend blockers, but with cgroup confinement of crap, it's >> >> >> > straight forward. >> >> >> > >> >> >> >> >> >> I don't think is is straight forward. If the a process in the frozen >> >> >> group holds a resource that a process in the unfrozen group needs, how >> >> >> do deal with that? >> >> > >> >> > I'm going to fix the framework which puts the group into freeze state >> >> > w/o making sure that there is no held shared resource. Come on it's >> >> > not rocket science. >> >> > >> >> >> >> I'm not sure which framework you are talking about here, but I don't >> >> think there is a single framework that knows about all shared >> >> resources. >> > >> > Damn, it's not me talking about "our framework", you are mentioning >> > when it fits your needs. >> >> You said you were going to fix the framework. I did know if you were >> talking about the cgroup framework, or the android user-space >> frameworks. I don't think either has knowledge about all shared >> resources. > > The cgroup freezer makes sure that there are no in kernel resources > blocked. Of course the user space side has to do the same and it's not > rocket science. > It is much easier to make sure there are no kernel resources held than that there are no resources held in user-space. The kernel threads have to return to a safe location before they get frozen, where user threads are just frozen wherever they are. -- Arve Hj?nnev?g -- 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/