Re: [PATCH] floppy: switch to one queue per drive instead of sharinga queue (Was: Re: cgq vs bdi names, was "cfq-iosched: fix a kernel OOPs whenusb key is inserted")

From: Vivek Goyal
Date: Wed Sep 22 2010 - 16:42:24 EST


On Wed, Sep 22, 2010 at 12:17:54AM +0200, Jens Axboe wrote:

[..]
> Super, thanks a lot! I will queue this up. If you want to continue
> this (very noble) crusade, the next target is
> drivers/mtd/mtd_blkdevs.c. I never got that one started, but it was
> next on my list.

Hi Jens,

IIUC, for MTD this conversion is already done and we seem to be using separate
request queue for each gendisk instead of some disks sharing a single
request queue. I think by following is relevant commit. Maxim should be
able to confirm though.

-----------------------------------------------------------------------
commit a863862257b7dd08d855bafcb0aedd9ad848ed91
Author: Maxim Levitsky <maximlevitsky@xxxxxxxxx>
Date: Mon Feb 22 20:39:29 2010 +0200

mtd: blktrans: remove mtd_blkcore_priv, switch to per device queue and
threa

This is the biggest change. To make hotplug possible, and this layer
clean, the mtd_blktrans_dev now contains everything for a single mtd
block translation device. Also removed some very old leftovers.

Signed-off-by: Maxim Levitsky <maximlevitsky@xxxxxxxxx>
Signed-off-by: David Woodhouse <David.Woodhouse@xxxxxxxxx>
-----------------------------------------------------------------------

I did create two mtd devices (from block devices, block2mtd), then then
created two block devices on top of those mtd devices (using mtdblock)
and these two devices mtdblock0 and mtdblock1 seems to be using their
own separate request queues. (Change in ioscheduler on one does not change
it on other queue).

So to me it looks like MTD is all set, until and unless I am missing
something.

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