block-backend: Add .drained_poll callback
commitfe5258a503a87e69be37c9ac48799e293809386e
authorKevin Wolf <kwolf@redhat.com>
Thu, 6 Sep 2018 15:43:49 +0000 (6 17:43 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 25 Sep 2018 13:50:15 +0000 (25 15:50 +0200)
treef1e8d9d5a1951f345ddf8b8c1df663ea7d93b41e
parentaa1361d54aac43094b98024b8b6c804eb6e41661
block-backend: Add .drained_poll callback

A bdrv_drain operation must ensure that all parents are quiesced, this
includes BlockBackends. Otherwise, callbacks called by requests that are
completed on the BDS layer, but not quite yet on the BlockBackend layer
could still create new requests.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/block-backend.c