floppy: switch to one queue per drive instead of sharing a queue
authorJens Axboe <jaxboe@fusionio.com>
Wed, 22 Sep 2010 07:32:36 +0000 (09:32 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Wed, 22 Sep 2010 07:32:36 +0000 (09:32 +0200)
commit488211844e0c3fad6ffa98a6f3c4f2139074e79a
treec65be4db08980d2230b62b7b52320c5bb8bcf484
parentfcfb5c0ce11fe474cd6b4f7e83e0cc25f220d911
floppy: switch to one queue per drive instead of sharing a queue

Pretty straight forward conversion. Note that we do round-robin
between the drives that have available requests, before we simply
used the drive that the IO scheduler told us to. Since the IO
scheduler doesn't care about multiple devices per queue, the resulting
sort would not have made sense.

Fixed by Vivek to get rid of a double lock problem in set_next_request()

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
drivers/block/floppy.c