qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 5/6] virtio-blk: Unify {non-, }dataplane's reque


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 5/6] virtio-blk: Unify {non-, }dataplane's request handlings
Date: Tue, 17 Jun 2014 06:27:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Il 17/06/2014 05:45, Fam Zheng ha scritto:
@@ -275,6 +123,7 @@ void virtio_blk_data_plane_create(VirtIODevice *vdev, 
VirtIOBlkConf *blk,
                                   Error **errp)
 {
     VirtIOBlockDataPlane *s;
+    VirtIOBlock *vblk = VIRTIO_BLK(vdev);
     Error *local_err = NULL;

     *dataplane = NULL;
@@ -317,6 +166,7 @@ void virtio_blk_data_plane_create(VirtIODevice *vdev, 
VirtIOBlkConf *blk,
     bdrv_op_block_all(blk->conf.bs, s->blocker);

     *dataplane = s;
+    vblk->complete_request = complete_request_early;
 }

This needs to be undone when dataplane is stopped.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]