OSDN Git Service

test-bdrv-drain: Test node deletion in subtree recursion
authorKevin Wolf <kwolf@redhat.com>
Fri, 23 Mar 2018 11:40:21 +0000 (12:40 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 Jun 2018 13:03:25 +0000 (15:03 +0200)
commitebd31837618cdc7bda83090773dcdd87475d55b7
treea8aa9a4be7c6da70d3459f7e0c9b44615db67ad7
parentfe4f0614ef9e361dae12012d3c400657444836cf
test-bdrv-drain: Test node deletion in subtree recursion

If bdrv_do_drained_begin() polls during its subtree recursion, the graph
can change and mess up the bs->children iteration. Test that this
doesn't happen.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/test-bdrv-drain.c