Received: from eggs.gnu.org ([2001:4830:134:3::10]:38422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGQOM-000662-CB for qemu-devel@nongnu.org; Fri, 24 Jun 2016 08:39:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGQOL-00048U-FQ for qemu-devel@nongnu.org; Fri, 24 Jun 2016 08:39:26 -0400 From: Fam Zheng Date: Fri, 24 Jun 2016 20:39:32 +0800 Message-Id: <20160624123934.10821-6-famz@redhat.com> In-Reply-To: <20160624123934.10821-1-famz@redhat.com> References: <20160624123934.10821-1-famz@redhat.com> Subject: [Qemu-devel] [PATCH v2 5/7] virtio-blk: Call virtio_add_queue_aio List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jeff Cody , Kevin Wolf , Max Reitz , Stefan Hajnoczi , "Michael S. Tsirkin" , Paolo Bonzini , qemu-block@nongnu.org AIO based handler is more appropriate here because it will then cooperate with bdrv_drained_begin/end. It is needed by the coming revert patch. Signed-off-by: Fam Zheng --- hw/block/virtio-blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 284e646..b1f56c3 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -888,7 +888,7 @@ static void virtio_blk_device_realize(DeviceState *dev, Error **errp) s->rq = NULL; s->sector_mask = (s->conf.conf.logical_block_size / BDRV_SECTOR_SIZE) - 1; - s->vq = virtio_add_queue(vdev, 128, virtio_blk_handle_output); + s->vq = virtio_add_queue_aio(vdev, 128, virtio_blk_handle_output); virtio_blk_data_plane_create(vdev, conf, &s->dataplane, &err); if (err != NULL) { error_propagate(errp, err); -- 2.8.3