]> git.proxmox.com Git - mirror_qemu.git/commit - block/throttle-groups.c
block: introduce bdrv_no_throttling_begin/end
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Apr 2016 16:33:33 +0000 (18:33 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 May 2016 13:22:07 +0000 (15:22 +0200)
commitce0f141259f06fd77fde2519cc352618ad797ce2
tree204c5d21527ea538dddc7cdda5c239cf6a08c5e9
parentb6e84c97ed0d786a7cda4e184736e25bb8824c2c
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>
block.c
block/block-backend.c
block/io.c
block/throttle-groups.c
include/block/block_int.h