summaryrefslogtreecommitdiffstats
path: root/scripts/switch-timer-api
diff options
context:
space:
mode:
authorAlberto Garcia2019-03-28 17:25:11 +0100
committerKevin Wolf2019-04-02 12:04:44 +0200
commitd20ba603f2d1462f7c39c6aa1f7e0968a18fda0c (patch)
tree93b4e126e2b3a4c2a07b865f444d70602e890844 /scripts/switch-timer-api
parentblock: freeze the backing chain earlier in stream_start() (diff)
downloadqemu-d20ba603f2d1462f7c39c6aa1f7e0968a18fda0c.tar.gz
qemu-d20ba603f2d1462f7c39c6aa1f7e0968a18fda0c.tar.xz
qemu-d20ba603f2d1462f7c39c6aa1f7e0968a18fda0c.zip
block: test block-stream with a base node that is used by block-commit
The base node of a block-stream operation indicates the first image from the backing chain starting from which no data is copied to the top node. The block-stream job allows others to use that base image, so a second block-stream job could be writing to it at the same time. An important restriction is that the base image must not disappear while the stream job is ongoing. stream_start() freezes the backing chain from top to base with that purpose but it does it too late in the code so there is a race condition there. This bug was fixed in the previous commit, and this patch contains an iotest for this scenario. Signed-off-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions