mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 04:13:39 +08:00
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>
This commit is contained in:
parent
b002254dbd
commit
d64c60a75f
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user