aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/virtio_blk.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 34ec273b1d46..930fee886917 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -804,10 +804,13 @@ static int virtblk_restore(struct virtio_device *vdev)
804 int ret; 804 int ret;
805 805
806 ret = init_vq(vdev->priv); 806 ret = init_vq(vdev->priv);
807 if (!ret) 807 if (ret)
808 blk_mq_start_stopped_hw_queues(vblk->disk->queue, true); 808 return ret;
809
810 virtio_device_ready(vdev);
809 811
810 return ret; 812 blk_mq_start_stopped_hw_queues(vblk->disk->queue, true);
813 return 0;
811} 814}
812#endif 815#endif
813 816