Commit c53ffce91b3e7d8b9d36e4e8bf82c38baf72b337
Committed by
Anthony Liguori
1 parent
55496240
qcow1: Fix qcow_aio_writev
Pass is_write = 1 to qcow_aio_setup when writing. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
1 changed file
with
1 additions
and
1 deletions
block/qcow.c
@@ -723,7 +723,7 @@ static BlockDriverAIOCB *qcow_aio_writev(BlockDriverState *bs, | @@ -723,7 +723,7 @@ static BlockDriverAIOCB *qcow_aio_writev(BlockDriverState *bs, | ||
723 | 723 | ||
724 | s->cluster_cache_offset = -1; /* disable compressed cache */ | 724 | s->cluster_cache_offset = -1; /* disable compressed cache */ |
725 | 725 | ||
726 | - acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 0); | 726 | + acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 1); |
727 | if (!acb) | 727 | if (!acb) |
728 | return NULL; | 728 | return NULL; |
729 | 729 |