diff options
| author | Paolo Bonzini | 2016-10-27 12:48:52 +0200 |
|---|---|---|
| committer | Fam Zheng | 2016-10-28 15:50:18 +0200 |
| commit | 99723548561978da8ef44cf804fb7912698f5d88 (patch) | |
| tree | acb3c6db77507a77a8f275747e12abc2494d6295 /scripts/switch-timer-api | |
| parent | mirror: use bdrv_drained_begin/bdrv_drained_end (diff) | |
| download | qemu-99723548561978da8ef44cf804fb7912698f5d88.tar.gz qemu-99723548561978da8ef44cf804fb7912698f5d88.tar.xz qemu-99723548561978da8ef44cf804fb7912698f5d88.zip | |
block: add BDS field to count in-flight requests
Unlike tracked_requests, this field also counts throttled requests,
and remains non-zero if an AIO operation needs a BH to be "really"
completed.
With this change, it is no longer necessary to have a dummy
BdrvTrackedRequest for requests that are never serialising, and
it is no longer necessary to poll the AioContext once after
bdrv_requests_pending(bs) returns false.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-Id: <1477565348-5458-5-git-send-email-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
