]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
block: sunvdc: don't run hw queue synchronously from irq context
authorMing Lei <ming.lei@redhat.com>
Thu, 3 Jan 2019 01:19:48 +0000 (09:19 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 3 Jan 2019 15:21:47 +0000 (08:21 -0700)
vdc_blk_queue_start() may be called from irq context, so we can't run
queue via blk_mq_start_hw_queues() since we never allow to run queue
from irq context. Use blk_mq_start_stopped_hw_queues(q, true) to fix
this issue.

Fixes: fa182a1fa97dff56cd ("sunvdc: convert to blk-mq")
Reported-by: Anatoly Pugachev <matorola@gmail.com>
Tested-by: Anatoly Pugachev <matorola@gmail.com>
Cc: Anatoly Pugachev <matorola@gmail.com>
Cc: sparclinux@vger.kernel.org
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/sunvdc.c

index 0ff27e2d98c46256cea2e491c92a0b1ac76aff83..26937ba28f789177545b2c651a3bf738b0c16b43 100644 (file)
@@ -181,7 +181,7 @@ static void vdc_blk_queue_start(struct vdc_port *port)
         * allocated a disk.
         */
        if (port->disk && vdc_tx_dring_avail(dr) * 100 / VDC_TX_RING_SIZE >= 50)
-               blk_mq_start_hw_queues(port->disk->queue);
+               blk_mq_start_stopped_hw_queues(port->disk->queue, true);
 }
 
 static void vdc_finish(struct vio_driver_state *vio, int err, int waiting_for)