Messages in this thread | | | Date | Wed, 22 Sep 2010 16:42:16 -0400 | From | Vivek Goyal <> | Subject | Re: [PATCH] floppy: switch to one queue per drive instead of sharing a queue (Was: Re: cgq vs bdi names, was "cfq-iosched: fix a kernel OOPs when usb key is inserted") |
| |
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@gmail.com> 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@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> -----------------------------------------------------------------------
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
| |