summaryrefslogtreecommitdiff
path: root/hw/scsi
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2016-05-24 16:25:20 -0600
committerKevin Wolf <kwolf@redhat.com>2016-05-25 19:04:21 +0200
commitd004bd52aacbe9bf43c38fa6cb20a6f241ac64be (patch)
treedd359afb28dc576963274e96304aa5228ec88a8e /hw/scsi
parent8a8e63ebdd5a6605af6a9df07c62b2214e1a650c (diff)
downloadqemu-d004bd52aacbe9bf43c38fa6cb20a6f241ac64be.tar.gz
qemu-d004bd52aacbe9bf43c38fa6cb20a6f241ac64be.tar.bz2
qemu-d004bd52aacbe9bf43c38fa6cb20a6f241ac64be.zip
block: Rename blk_write_zeroes()
Commit 983a1600 changed the semantics of blk_write_zeroes() to be byte-based rather than sector-based, but did not change the name, which is an open invitation for other code to misuse the function. Renaming to pwrite_zeroes() makes it more in line with other byte-based interfaces, and will help make it easier to track which remaining write_zeroes interfaces still need conversion. Reported-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'hw/scsi')
-rw-r--r--hw/scsi/scsi-disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
index c374ea80d0..8865da53e8 100644
--- a/hw/scsi/scsi-disk.c
+++ b/hw/scsi/scsi-disk.c
@@ -1780,7 +1780,7 @@ static void scsi_disk_emulate_write_same(SCSIDiskReq *r, uint8_t *inbuf)
block_acct_start(blk_get_stats(s->qdev.conf.blk), &r->acct,
nb_sectors * s->qdev.blocksize,
BLOCK_ACCT_WRITE);
- r->req.aiocb = blk_aio_write_zeroes(s->qdev.conf.blk,
+ r->req.aiocb = blk_aio_pwrite_zeroes(s->qdev.conf.blk,
r->req.cmd.lba * s->qdev.blocksize,
nb_sectors * s->qdev.blocksize,
flags, scsi_aio_complete, r);