swim: convert to blk-mq
authorOmar Sandoval <[email protected]>
Mon, 15 Oct 2018 15:12:12 +0000 (09:12 -0600)
committerJens Axboe <[email protected]>
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 <[email protected]>
Acked-by: Laurent Vivier <[email protected]>
Signed-off-by: Omar Sandoval <[email protected]>
Converted to blk_mq_init_sq_queue()

Signed-off-by: Jens Axboe <[email protected]>
drivers/block/swim.c