From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932823Ab0E1K6n (ORCPT ); Fri, 28 May 2010 06:58:43 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:32843 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932589Ab0E1K6k (ORCPT ); Fri, 28 May 2010 06:58:40 -0400 Subject: Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8) From: Peter Zijlstra To: Arve =?ISO-8859-1?Q?Hj=F8nnev=E5g?= Cc: Alan Cox , "Rafael J. Wysocki" , Matthew Garrett , Alan Stern , Thomas Gleixner , Paul@smtp1.linux-foundation.org, LKML , Florian Mickler , Linux OMAP Mailing List , Linux PM In-Reply-To: References: <20100527181433.GG3543@srcf.ucam.org> <20100527200313.5c532f2f@lxorguk.ukuu.org.uk> <201005280110.17075.rjw@sisk.pl> <20100528005045.6ea5feba@lxorguk.ukuu.org.uk> Content-Type: text/plain; charset="UTF-8" Date: Fri, 28 May 2010 09:43:43 +0200 Message-ID: <1275032623.32462.30.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2010-05-27 at 17:45 -0700, Arve Hjønnevåg wrote: > What happens if the user presses the button right before you set QoS > of 'user apps' to QS_NONE? > To me it looks like this solution would result in this sequence which > may ignore the button press: > Button pushed > Button driver sets QoS of app it wakes to QS_ABOVESUSPEND > Set QoS of 'user apps' to QS_NONE I don't think we should change app QoS parameters, but change service provider parameters. For instance, suppose the filesystem-IO QoS has 3 levels: High, Normal and Idle. Then if we assign Idle to updatedb, we'll service it as long as the filesystem-server QoS has a higher level (High and Normal). When we change the filesystem-serves' QoS to idle, it finds there is nothing to keep it servicing stuff and it'll block pending requests, updatedb stops being runnable and we're good.