diff options
author | Sergio Lopez <slp@redhat.com> | 2021-02-01 13:50:31 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2021-02-02 13:23:47 +0100 |
commit | 722d8e73d65cb54f39d360ecb2147ac58f43c399 (patch) | |
tree | 398b0df1336f93e5b9892307ee6aee916e9822ab /softmmu/runstate.c | |
parent | d7beddcc024f90da6375c1694b805fc282c79402 (diff) | |
download | qemu-722d8e73d65cb54f39d360ecb2147ac58f43c399.zip qemu-722d8e73d65cb54f39d360ecb2147ac58f43c399.tar.gz qemu-722d8e73d65cb54f39d360ecb2147ac58f43c399.tar.bz2 |
block: Avoid processing BDS twice in bdrv_set_aio_context_ignore()
Some graphs may contain an indirect reference to the first BDS in the
chain that can be reached while walking it bottom->up from one its
children.
Doubling-processing of a BDS is especially problematic for the
aio_notifiers, as they might attempt to work on both the old and the
new AIO contexts.
To avoid this problem, add every child and parent to the ignore list
before actually processing them.
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Sergio Lopez <slp@redhat.com>
Message-Id: <20210201125032.44713-2-slp@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'softmmu/runstate.c')
0 files changed, 0 insertions, 0 deletions