]> git.proxmox.com Git - mirror_qemu.git/commit - block/block-backend.c
block-backend: add drained_begin / drained_end ops
authorJohn Snow <jsnow@redhat.com>
Thu, 16 Mar 2017 21:23:50 +0000 (17:23 -0400)
committerJeff Cody <jcody@redhat.com>
Wed, 22 Mar 2017 17:26:27 +0000 (13:26 -0400)
commitf4d9cc88ee69a5b04a843424e50f466e36fcad4e
treea2d8777a5e230efd54adfadd6020f8a1ab77e5b8
parente3796a245ad0efa65ca8d2dc6424562a8fbaeb6a
block-backend: add drained_begin / drained_end ops

Allow block backends to forward drain requests to their devices/users.
The initial intended purpose for this patch is to allow BBs to forward
requests along to BlockJobs, which will want to pause if their associated
BB has entered a drained region.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Message-id: 20170316212351.13797-3-jsnow@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/block-backend.c
include/sysemu/block-backend.h