]> git.proxmox.com Git - mirror_qemu.git/commit
block: add bdrv_co_drain_end callback
authorManos Pitsidianakis <el13635@mail.ntua.gr>
Sat, 23 Sep 2017 11:14:09 +0000 (14:14 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 13 Oct 2017 11:38:41 +0000 (12:38 +0100)
commit481cad48e5e655746893e001af31c161f4587a02
treed60d2906b97eeccfe74e043c364aeed254a27192
parentf90ea7ba7c5ae7010ee0ce062207ae42530f57d6
block: add bdrv_co_drain_end callback

BlockDriverState has a bdrv_co_drain() callback but no equivalent for
the end of the drain. The throttle driver (block/throttle.c) needs a way
to mark the end of the drain in order to toggle io_limits_disabled
correctly, thus bdrv_co_drain_end is needed.

Signed-off-by: Manos Pitsidianakis <el13635@mail.ntua.gr>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/io.c
include/block/block_int.h