summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2015-11-09 18:16:46 +0800
committerKevin Wolf <kwolf@redhat.com>2015-11-12 16:22:08 +0100
commitebde595ce63369921dbbe1bd16fec0b230050d67 (patch)
treedf7f0e6407464b7d3abc81ace40a8f201fa3396b /include
parent17e50a72a3aade0eddfebc012a5d7bdd40a03573 (diff)
downloadqemu-ebde595ce63369921dbbe1bd16fec0b230050d67.tar.gz
qemu-ebde595ce63369921dbbe1bd16fec0b230050d67.tar.bz2
qemu-ebde595ce63369921dbbe1bd16fec0b230050d67.zip
block: Add more types for tracked request
We'll track more request types besides read and write, change the boolean field to an enum. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-id: 1447064214-29930-2-git-send-email-famz@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/block_int.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h
index 603145a21d..ac034069ff 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -60,11 +60,19 @@
#define BLOCK_PROBE_BUF_SIZE 512
+enum BdrvTrackedRequestType {
+ BDRV_TRACKED_READ,
+ BDRV_TRACKED_WRITE,
+ BDRV_TRACKED_FLUSH,
+ BDRV_TRACKED_IOCTL,
+ BDRV_TRACKED_DISCARD,
+};
+
typedef struct BdrvTrackedRequest {
BlockDriverState *bs;
int64_t offset;
unsigned int bytes;
- bool is_write;
+ enum BdrvTrackedRequestType type;
bool serialising;
int64_t overlap_offset;