virtio-blk: fix comment for virtio_blk_rw_complete as nalloc is initially -1
PATCH 1/1 virtio-blk: fix comment for virtio_blk_rw_complete as nalloc is initially -1
The initial value of nalloc is -1, but not 1.
Signed-off-by Dongli Zhang <[email protected]>
---
This is based on git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_upstream
hw/block/virtio-blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/block/virtio-blk.c +1 -1
@@ -96,7 +96,7 @@ static void virtio_blk_rw_complete(void *opaque, int ret)trace_virtio_blk_rw_complete (vdev, req, ret);if (req->qiov.nalloc !=-1 ) { -/* If nalloc is != 1 req->qiov is a local copy of the original +/* If nalloc is != -1 req->qiov is a local copy of the original * external iovec. It was allocated in submit_requests to be * able to merge requests. */ qemu_iovec_destroy (&req->qiov);
Signature · 1 line
2.7.4
Quoted 15 lines · Dongli Zhang
The initial value of nalloc is -1, but not 1.
Signed-off-by Dongli Zhang <[email protected]>---
This is based ongit://git.kernel.org/pub/scm/virt/kvm/mst/qemu.gittags/for_upstreamhw/block/virtio-blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/block/virtio-blk.c +0
-0
hw/block/virtio-blk.c static void virtio_blk_rw_complete(void *opaque, int ret) · line 102
Quoted 8 lines
hw/block/virtio-blk.c +1
-1@@ -96,7 +96,7 @@ static void virtio_blk_rw_complete(void *opaque, int ret)trace_virtio_blk_rw_complete (vdev, req, ret);if (req->qiov.nalloc !=-1 ) { -/* If nalloc is != 1 req->qiov is a local copy of the original +/* If nalloc is != -1 req->qiov is a local copy of the original * external iovec. It was allocated in submit_requests to be * able to merge requests. */ qemu_iovec_destroy (&req->qiov);
Reviewed-by Laurent Vivier <[email protected]>
Stefan Hajnoczi
AppliedQuoted 8 lines · Dongli Zhang
The initial value of nalloc is -1, but not 1.
Signed-off-by Dongli Zhang <[email protected]>---
This is based ongit://git.kernel.org/pub/scm/virt/kvm/mst/qemu.gittags/for_upstreamhw/block/virtio-blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied to my block-next tree for QEMU 3.2:
https://github.com/stefanha/qemu/commits/block-next
Stefan