summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2021-05-06 11:06:16 +0200
committerMax Reitz2021-05-14 16:14:10 +0200
commite46354a8aeefe4637c689de27532bc00712f9c60 (patch)
tree40d6780d13b319b3facad877be06d04cd546f01f /include
parentblock: drop write notifiers (diff)
downloadqemu-e46354a8aeefe4637c689de27532bc00712f9c60.tar.gz
qemu-e46354a8aeefe4637c689de27532bc00712f9c60.tar.xz
qemu-e46354a8aeefe4637c689de27532bc00712f9c60.zip
test-write-threshold: rewrite test_threshold_(not_)trigger tests
These tests use bdrv_write_threshold_exceeded() API, which is used only for test (since pre-previous commit). Better is testing real API, which is used in block.c as well. So, let's call bdrv_write_threshold_check_write(), and check is bs->write_threshold_offset cleared or not (it's cleared iff threshold triggered). Also we get rid of BdrvTrackedRequest use here. Note, that paranoiac bdrv_check_request() calls were added in 8b1170012b1 to protect BdrvTrackedRequest. Drop them now. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20210506090621.11848-4-vsementsov@virtuozzo.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions