summaryrefslogtreecommitdiffstats
path: root/scripts/switch-timer-api
diff options
context:
space:
mode:
authorDou Liyang2017-01-15 09:01:14 +0100
committerMax Reitz2017-02-12 00:47:42 +0100
commit20a6d768f5c1a590d8a42c343aa862f89966cb23 (patch)
treed56227993712cb4b726fc3b06d462876c20e743f /scripts/switch-timer-api
parentqemu-iotest: test to lookup protocol-based image with relative backing (diff)
downloadqemu-20a6d768f5c1a590d8a42c343aa862f89966cb23.tar.gz
qemu-20a6d768f5c1a590d8a42c343aa862f89966cb23.tar.xz
qemu-20a6d768f5c1a590d8a42c343aa862f89966cb23.zip
block/qapi: reduce the coupling between the bdrv_query_stats and bdrv_query_bds_stats
The bdrv_query_stats and bdrv_query_bds_stats functions need to call each other, that increases the coupling. it also makes the program complicated and makes some unnecessary tests. Remove the call from bdrv_query_bds_stats to bdrv_query_stats, just take some recursion to make it clearly. Avoid testing whether the blk is NULL during querying the bds stats. It is unnecessary. Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com> Message-id: 1484467275-27919-2-git-send-email-douly.fnst@cn.fujitsu.com Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions