Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752488Ab0FHApF (ORCPT ); Mon, 7 Jun 2010 20:45:05 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:63667 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751958Ab0FHApD convert rfc822-to-8bit (ORCPT ); Mon, 7 Jun 2010 20:45:03 -0400 MIME-Version: 1.0 In-Reply-To: <20100606144322.GC21016@count0.beaverton.ibm.com> References: <20100606144322.GC21016@count0.beaverton.ibm.com> Date: Mon, 7 Jun 2010 17:45:01 -0700 Message-ID: Subject: Re: suspend blockers & Android integration From: =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5g?= To: Matt Helsley Cc: Thomas Gleixner , "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: 1479 Lines: 39 On Sun, Jun 6, 2010 at 7:43 AM, Matt Helsley wrote: > On Sun, Jun 06, 2010 at 12:36:21PM +0200, Thomas Gleixner wrote: >> On Sat, 5 Jun 2010, Arve Hj?nnev?g wrote: > > > >> > events like input event go though a single thread in our system >> > process, while other events like network packets (which are also >> > wakeup events) goes directly to the app. > > If you want to wake up cgroup-frozen tasks for these fds perhaps your > framework can fcnt(fd, F_SETOWN, ) to send SIGIO to a How does the framework get all the fds that are used by the apps for wakeup events? > userspace-suspend-blocker thread/process/process group. When IO comes in, the > suspend blocker is signalled which then unfreezes the cgroup of the frozen > untrusted task. SIGIO works on pipes, fifos, sockets, ttys, and ptys -- > many of which are precisely the kinds of things that would connect [trusted > and untrusted] apps. Notably absent (last I checked): inotify fds, signalfd, > timerfd, eventfd, filesystem fds and likely more. > > Incidentally, this is just to show that it's not impossible to implement > "wakeups" for cgroup-frozen tasks in userspace. > > Cheers, > ? ? ? ?-Matt Helsley > -- 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/