diff options
author | Fam Zheng | 2016-05-11 04:45:35 +0200 |
---|---|---|
committer | Kevin Wolf | 2016-05-12 15:22:09 +0200 |
commit | aad0b7a0bfbd6d200f617396c0d3b71ac7abfa40 (patch) | |
tree | 94285bdbdf58bbf65b008041f57972b3c2988112 /hw/i2c/imx_i2c.c | |
parent | block: Drop superfluous invalidating bs->file from drivers (diff) | |
download | qemu-aad0b7a0bfbd6d200f617396c0d3b71ac7abfa40.tar.gz qemu-aad0b7a0bfbd6d200f617396c0d3b71ac7abfa40.tar.xz qemu-aad0b7a0bfbd6d200f617396c0d3b71ac7abfa40.zip |
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>
Diffstat (limited to 'hw/i2c/imx_i2c.c')
0 files changed, 0 insertions, 0 deletions