diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2016-04-13 12:47:08 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2016-04-15 17:22:11 +0200 |
| commit | 7fa84cd8d4b5ce3939bc2498010f6640e855dbad (patch) | |
| tree | 4619b5ab9a523c68a800576d5e996ced47b0b94f /qapi/string-input-visitor.c | |
| parent | 5ceb77652e3bf03bbe4cbc580db8bd1ce7a3cd1f (diff) | |
| download | focaccia-qemu-7fa84cd8d4b5ce3939bc2498010f6640e855dbad.tar.gz focaccia-qemu-7fa84cd8d4b5ce3939bc2498010f6640e855dbad.zip | |
block: Fix blk_aio_write_zeroes()
Commit 57d6a428 broke blk_aio_write_zeroes() because in some write functions in the call path don't have an explicit length argument but reuse qiov->size instead. Which is great, except that write_zeroes doesn't have a qiov, which this commit interprets as 0 bytes. Consequently, blk_aio_write_zeroes() didn't effectively do anything. This patch introduces an explicit acb->bytes in BlkAioEmAIOCB and uses that instead of acb->rwco.size. The synchronous version of the function is okay because it does pass a qiov (with the right size and a NULL pointer as its base). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'qapi/string-input-visitor.c')
0 files changed, 0 insertions, 0 deletions