block: introduce bdrv_no_throttling_begin/end
Extract the handling of throttling from bdrv_flush_io_queue. These new functions will soon become BdrvChildRole callbacks, as they can be generalized to "beginning of drain" and "end of drain". Reviewed-by:Alberto Garcia <berto@igalia.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Acked-by:
Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Showing
- block.c 0 additions, 1 deletionblock.c
- block/block-backend.c 2 additions, 4 deletionsblock/block-backend.c
- block/io.c 21 additions, 12 deletionsblock/io.c
- block/throttle-groups.c 4 additions, 0 deletionsblock/throttle-groups.c
- include/block/block_int.h 6 additions, 3 deletionsinclude/block/block_int.h
Loading
Please register or sign in to comment