block: Use blk_co_flush() for all BB level flushes
commitbe07a889816b72c6e73b7649afe563590156ff9c
authorKevin Wolf <kwolf@redhat.com>
Thu, 20 Oct 2016 10:56:14 +0000 (20 12:56 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Oct 2016 17:05:22 +0000 (27 19:05 +0200)
tree4d3bf2f33c051a3b0f00de94bae97a30fe415d46
parent5929d7e8a0e1f43333bc3528b50397ae8dd0fd6b
block: Use blk_co_flush() for all BB level flushes

All read/write functions already have a single coroutine-based function
on the BlockBackend level through which all requests go (no matter what
API style the external caller used) and which passes the requests down
to the block node level.

This patch extends this mode of operation to flushes.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/block-backend.c