ataflop: convert to blk-mq
authorOmar Sandoval <osandov@fb.com>
Mon, 15 Oct 2018 15:18:24 +0000 (09:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Oct 2018 15:50:09 +0000 (09:50 -0600)
commit6ec3938cff95fe792a05fdf4ba14f92977e5e31d
tree5b258ee5fd848a348dc15d0108dff7c15333f6d5
parent71327f547ee3a46ec5c39fdbbd268401b2578d0e
ataflop: convert to blk-mq

This driver is already pretty broken, in that it has two wait_events()
(one in stdma_lock()) in request_fn. Get rid of the first one by
freezing/quiescing the queue on format, and the second one by replacing
it with stdma_try_lock(). The rest is straightforward. Compile-tested
only and probably incorrect.

Cc: 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/ataflop.c