Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756007Ab0HXVJJ (ORCPT ); Tue, 24 Aug 2010 17:09:09 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:47593 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755496Ab0HXVJE (ORCPT ); Tue, 24 Aug 2010 17:09:04 -0400 Date: Tue, 24 Aug 2010 17:09:03 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Jens Axboe cc: Kernel development list Subject: Re: Runtime PM and the block layer In-Reply-To: <4C74273B.4000308@kernel.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 866 Lines: 23 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/