Skip to contentSkip to conversation

virtio-blk: Remove the stale FIXME comment

PATCH Applied Fam Zheng 3 participants 4 messages Feb 16, 2015 – Mar 4, 2015

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 virtio-blk: Remove the stale FIXME comment

By default, we have ioeventfd enabled, so the IO request processing is in IO thread; in the vcpu thread, guest mode is returned to as quickly as possible, and completion is delivered via irqfd. Therefore this comment from the initial implementation is barely relevant.

---
 hw/block/virtio-blk.c | 6 ------
 1 file changed, 6 deletions(-)
hw/block/virtio-blk.c +0 -6
index 1a8a176..29c8d33 100644
@@ -591,12 +591,6 @@ static void virtio_blk_handle_output(VirtIODevice *vdev, VirtQueue *vq)
     if (mrb.num_reqs) {
         virtio_blk_submit_multireq(s->blk, &mrb);
     }
-
-    /*
-     * FIXME: Want to check for completions before returning to guest mode,
-     * so cached reads and writes are reported as quickly as possible. But
-     * that should be done in the generic block layer.
-     */
 }
 
 static void virtio_blk_dma_restart_bh(void *opaque)
Signature · 1 line
1.9.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Fam Zheng

By default, we have ioeventfd enabled, so the IO request processing is in IO thread; in the vcpu thread, guest mode is returned to as quickly as possible, and completion is delivered via irqfd. Therefore this comment from the initial implementation is barely relevant.

---
 hw/block/virtio-blk.c | 6 ------
 1 file changed, 6 deletions(-)
author
#2 lore raw
Quoted 6 lines · Stefan Hajnoczi
Quoted 5 lines · Fam Zheng

By default, we have ioeventfd enabled, so the IO request processing is in IO thread; in the vcpu thread, guest mode is returned to as quickly as possible, and completion is delivered via irqfd. Therefore this comment from the initial implementation is barely relevant.

Quoted 6 lines
Quoted 4 lines
---
 hw/block/virtio-blk.c | 6 ------
 1 file changed, 6 deletions(-)

Max, would you apply this?

Fam

Applied
#3 lore raw
In reply to Fam Zheng

Am 16.02.2015 um 05:09 hat Fam Zheng geschrieben:

Quoted 6 lines

By default, we have ioeventfd enabled, so the IO request processing is in IO thread; in the vcpu thread, guest mode is returned to as quickly as possible, and completion is delivered via irqfd. Therefore this comment from the initial implementation is barely relevant.

Thanks, applied to the block branch.

Kevin