summaryrefslogtreecommitdiffstats
path: root/block/vpc.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-04-13 12:47:08 +0200
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 20:03:49 -0600
commit64558f4050134c437c4ac8ff4d1325ceb6ec2dd5 (patch)
tree8605372ef64afab8e7c89d541338ba6299f08b50 /block/vpc.c
parent97a95a3a4c96446623bf91c2bdab943f035e5af5 (diff)
downloadhqemu-64558f4050134c437c4ac8ff4d1325ceb6ec2dd5.zip
hqemu-64558f4050134c437c4ac8ff4d1325ceb6ec2dd5.tar.gz
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 'block/vpc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud