diff options
author | Kevin Wolf <kwolf@redhat.com> | 2017-12-06 20:24:44 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-12-22 15:05:32 +0100 |
commit | 1a63a907507fbbcfaee3f622907ec244b7eabda8 (patch) | |
tree | 3d99d71c98b48bbdc326b03fe6d154980a2ce0ce /nbd/trace-events | |
parent | 44487eb973f895d68989cf931e25f309ec9807f9 (diff) |
block: Keep nodes drained between reopen_queue/multiple
The bdrv_reopen*() implementation doesn't like it if the graph is
changed between queuing nodes for reopen and actually reopening them
(one of the reasons is that queuing can be recursive).
So instead of draining the device only in bdrv_reopen_multiple(),
require that callers already drained all affected nodes, and assert this
in bdrv_reopen_queue().
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'nbd/trace-events')
0 files changed, 0 insertions, 0 deletions