Searched hist:c0829cb1fd5e0b35abfcf9fc3f04502c1ed5d7b6 (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/ |
H A D | block.c | diff c0829cb1fd5e0b35abfcf9fc3f04502c1ed5d7b6 Mon Jan 24 11:37:41 CST 2022 Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> block: bdrv_set_backing_hd(): use drained section
Graph modifications should be done in drained section. stream_prepare() handler of block stream job call bdrv_set_backing_hd() without using drained section and it's theoretically possible that some IO request will interleave with graph modification and will use outdated pointers to removed block nodes.
Some other callers use bdrv_set_backing_hd() not caring about drained sections too. So it seems good to make a drained section exactly in bdrv_set_backing_hd().
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20220124173741.2984056-1-vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|