virtio-blk: data-plane: fix save/set .complete_request in start
commite926d9b8c52d5ddf413617df4b341a3114642b14
authorMing Lei <ming.lei@canonical.com>
Sat, 12 Jul 2014 04:08:52 +0000 (12 12:08 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 15 Jul 2014 13:34:13 +0000 (15 15:34 +0200)
treea9d4afe9be206ab470dad451481bc23520f143fa
parenta1abf40d6be2fc4b40d90ae3b46442f4a671776b
virtio-blk: data-plane: fix save/set .complete_request in start

The callback has to be saved and reset in virtio_blk_data_plane_start(),
otherwise dataplane's requests will be completed in qemu aio context.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/dataplane/virtio-blk.c