summaryrefslogtreecommitdiffstats
path: root/hw/block/dataplane
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2014-06-17 14:32:10 +0800
committerKevin Wolf <kwolf@redhat.com>2014-06-27 18:20:42 +0200
commitd64c60a75fde0fc40f7c97acbc972dea59db0162 (patch)
treea59de1f8f18257c7e8acba0b669615de63ef1fdb /hw/block/dataplane
parentb002254dbd4c19a01f29790f840f983803e26893 (diff)
downloadhqemu-d64c60a75fde0fc40f7c97acbc972dea59db0162.zip
hqemu-d64c60a75fde0fc40f7c97acbc972dea59db0162.tar.gz
virtio-blk: Rename complete_request_early to complete_request_vring
The old name is misleading in its new usage, so rename it. Signed-off-by: Fam Zheng <famz@redhat.com> Tested-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/block/dataplane')
-rw-r--r--hw/block/dataplane/virtio-blk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c
index b6afa55..09bd2c7 100644
--- a/hw/block/dataplane/virtio-blk.c
+++ b/hw/block/dataplane/virtio-blk.c
@@ -61,7 +61,7 @@ static void notify_guest(VirtIOBlockDataPlane *s)
event_notifier_set(s->guest_notifier);
}
-static void complete_request_early(VirtIOBlockReq *req, unsigned char status)
+static void complete_request_vring(VirtIOBlockReq *req, unsigned char status)
{
stb_p(&req->in->status, status);
@@ -169,7 +169,7 @@ void virtio_blk_data_plane_create(VirtIODevice *vdev, VirtIOBlkConf *blk,
*dataplane = s;
s->saved_complete_request = vblk->complete_request;
- vblk->complete_request = complete_request_early;
+ vblk->complete_request = complete_request_vring;
}
/* Context: QEMU global mutex held */
OpenPOWER on IntegriCloud