]> git.proxmox.com Git - mirror_qemu.git/commit - include/block/block.h
block: Add bdrv_subtree_drained_begin/end()
authorKevin Wolf <kwolf@redhat.com>
Wed, 6 Dec 2017 16:05:44 +0000 (17:05 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Dec 2017 14:05:32 +0000 (15:05 +0100)
commitb0165585900f050f403cecba9d89adeccf35dd6c
tree82a19acb79e687005a43bdaed32f8c34fdcde05f
parent0152bf400fe3ca7facb382683bfcccda70ebf51a
block: Add bdrv_subtree_drained_begin/end()

bdrv_drained_begin() waits for the completion of requests in the whole
subtree, but it only actually keeps its immediate bs parameter quiesced
until bdrv_drained_end().

Add a version that keeps the whole subtree drained. As of this commit,
graph changes cannot be allowed during a subtree drained section, but
this will be fixed soon.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/io.c
include/block/block.h