Re: Runtime PM and the block layer

From: Alan Stern
Date: Tue Aug 24 2010 - 17:09:30 EST


On Tue, 24 Aug 2010, Jens Axboe wrote:

> > I see. You're suggesting we add a new "power_mode" or "queue_idle"
> > callback to the request_queue struct, and make the block layer invoke
> > this callback whenever a request completes and there are no other
> > requests pending or in flight. Right? And similarly, invoke the
> > callback (with a different argument) when the first request gets added
> > to an otherwise empty queue.
> >
> > That would suit my needs.
>
> Yep, that is what I'm suggesting.

All right, I'll work on this and get back to you when I need more help.
Thanks for the advice.

Alan Stern

--
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/