]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf32f44078b2a41b3a23f6dc1a3c198f4333a570f
tree5b258ee5fd848a348dc15d0108dff7c15333f6d5
parentb2c09ee03e89196f76665e237c79077e6ed15ba3
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