diff options
author | Peter Lieven <pl@kamp.de> | 2015-02-02 14:52:18 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-02-06 17:24:21 +0100 |
commit | f4564d53c6952c61fb3ed8ee17a6e0f2f6bf0857 (patch) | |
tree | 86838b0db4f467bc3160eb3add2010a2926d099b /block/qapi.c | |
parent | 35f5a49374098733247c640cbdcbafcfc792c11f (diff) |
block: add accounting for merged requests
Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qapi.c')
-rw-r--r-- | block/qapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/qapi.c b/block/qapi.c index 75c388e90b..d1a891796c 100644 --- a/block/qapi.c +++ b/block/qapi.c @@ -335,6 +335,8 @@ static BlockStats *bdrv_query_stats(const BlockDriverState *bs, s->stats->wr_bytes = bs->stats.nr_bytes[BLOCK_ACCT_WRITE]; s->stats->rd_operations = bs->stats.nr_ops[BLOCK_ACCT_READ]; s->stats->wr_operations = bs->stats.nr_ops[BLOCK_ACCT_WRITE]; + s->stats->rd_merged = bs->stats.merged[BLOCK_ACCT_READ]; + s->stats->wr_merged = bs->stats.merged[BLOCK_ACCT_WRITE]; s->stats->wr_highest_offset = bs->stats.wr_highest_sector * BDRV_SECTOR_SIZE; s->stats->flush_operations = bs->stats.nr_ops[BLOCK_ACCT_FLUSH]; |