block: Lift more functions into BlockBackend
commit2bb0dce76245762dbc0a8fe12516faa127a64e5b
authorMax Reitz <mreitz@redhat.com>
Tue, 18 Nov 2014 11:21:14 +0000 (18 12:21 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 Dec 2014 09:31:12 +0000 (10 10:31 +0100)
tree45145d84af3638afe774ebd16e88dbc2682d8686
parent17fcb74af922ba9f761d11e874314c32a3445e97
block: Lift more functions into BlockBackend

There are already some blk_aio_* functions, so we might as well have
blk_co_* functions (as far as we need them). This patch adds
blk_co_flush(), blk_co_discard(), and also blk_invalidate_cache() (which
is not a blk_co_* function but is needed nonetheless).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1416309679-333-2-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
include/sysemu/block-backend.h