block: Loop unsafely in bdrv*drained_end()
commit61ad631cee21f878540681274fe0f53e7ee9f59e
authorMax Reitz <mreitz@redhat.com>
Fri, 19 Jul 2019 09:26:16 +0000 (19 11:26 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 19 Jul 2019 11:19:17 +0000 (19 13:19 +0200)
treec59608a886e4c76f8673308de57996b11bddf017
parent2afdc790ec0e5cb61d2f738adafa93f990ca553d
block: Loop unsafely in bdrv*drained_end()

The graph must not change in these loops (or a QLIST_FOREACH_SAFE would
not even be enough).  We now ensure this by only polling once in the
root bdrv_drained_end() call, so we can drop the _SAFE suffix.  Doing so
makes it clear that the graph must not change.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/io.c