aboutsummaryrefslogtreecommitdiff
path: root/include/block
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2018-07-03 10:37:57 +0800
committerJeff Cody <jcody@redhat.com>2018-07-02 23:23:45 -0400
commitdee12de89380483656072f775f5ef99f4426f966 (patch)
treef7bcaa73fa272afc1109452895a011897a0627d2 /include/block
parentd4d3e5a0d53a57282955e8a3ed7acc1ca90552d9 (diff)
downloadqemu-dee12de89380483656072f775f5ef99f4426f966.zip
qemu-dee12de89380483656072f775f5ef99f4426f966.tar.gz
qemu-dee12de89380483656072f775f5ef99f4426f966.tar.bz2
block: Honour BDRV_REQ_NO_SERIALISING in copy range
This semantics is needed by drive-backup so implement it before using this API there. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com> Message-id: 20180703023758.14422-3-famz@redhat.com Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 2ffc1c6..e5c7759 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -659,13 +659,14 @@ void bdrv_unregister_buf(BlockDriverState *bs, void *host);
* @dst: Destination child to copy data to
* @dst_offset: offset in @dst image to write data
* @bytes: number of bytes to copy
- * @flags: request flags. Must be one of:
- * 0 - actually read data from src;
+ * @flags: request flags. Supported flags:
* BDRV_REQ_ZERO_WRITE - treat the @src range as zero data and do zero
* write on @dst as if bdrv_co_pwrite_zeroes is
* called. Used to simplify caller code, or
* during BlockDriver.bdrv_co_copy_range_from()
* recursion.
+ * BDRV_REQ_NO_SERIALISING - do not serialize with other overlapping
+ * requests currently in flight.
*
* Returns: 0 if succeeded; negative error code if failed.
**/