Home
last modified time | relevance | path

Searched hist:aad0b7a0bfbd6d200f617396c0d3b71ac7abfa40 (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/
H A Dblock.cdiff aad0b7a0bfbd6d200f617396c0d3b71ac7abfa40 Tue May 10 21:45:35 CDT 2016 Fam Zheng <famz@redhat.com> block: Inactivate all children

Currently we only inactivate the top BDS. Actually bdrv_inactivate
should be the opposite of bdrv_invalidate_cache.

Recurse into the whole subtree instead.

Because a node may have multiple parents, and because once
BDRV_O_INACTIVE is set for a node, further writes are not allowed, we
cannot interleave flag settings and .bdrv_inactivate calls (that may
submit write to other nodes in a graph) within a single pass. Therefore
two passes are used here.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>