swim: convert to blk-mq
authorOmar Sandoval <osandov@fb.com>
Mon, 15 Oct 2018 15:12:12 +0000 (09:12 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Oct 2018 15:49:18 +0000 (09:49 -0600)
commite3896d77b7025c39150eb5ada33ec2c88f4ad445
treeea13bc04044582cc97f85c3309880fbb494e2645
parent1448a2a5360ae06f25e2edc61ae070dff5c0beb4
swim: convert to blk-mq

The only interesting thing here is that there may be two floppies (i.e.,
request queues) sharing the same controller, so we use the global struct
swim_priv->lock to check whether the controller is busy. Compile-tested
only.

Tested-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Converted to blk_mq_init_sq_queue()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/swim.c