Re: [RFC, PATCH] cfq-iosched: remove redundant queuing detection code

From: Jeff Moyer
Date: Tue Nov 10 2009 - 10:20:45 EST


Jens Axboe <jens.axboe@xxxxxxxxxx> writes:

> On Tue, Nov 10 2009, Corrado Zoccolo wrote:
>> The core block layer already has code to detect presence of command
>> queuing devices. We convert cfq to use that instead of re-doing the
>> computation.
>
> There's is the major difference that the CFQ variant is dynamic and the
> block layer one is not. This change came from Aaron some time ago IIRC,
> see commit 45333d5. It's a bit of a chicken and egg problem.

Really? blk_dequeue_request sure looks like it updates things
dynamically, but only one way (not queueing -> queueing). Would it make
sense to just put CFQ's logic into the block layer so that everyone uses
the same implementation? It makes little sense to have two notions of
whether or not queueing is supported for a device.

Cheers,
Jeff
--
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/