Re: [linux-pm] [PATCH 0/8] Suspend block api (version 8)

From: Peter Zijlstra
Date: Fri May 28 2010 - 06:58:47 EST


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.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/