block: add flush callback
commitc32b82afaf261ebb922269e2be298e05331b875c
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Mon, 14 Mar 2016 07:44:53 +0000 (14 10:44 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Mar 2016 10:12:15 +0000 (30 12:12 +0200)
treef5d79b9fa15f7919b2361284fd42d3d83e3f7b94
parent6278ae035fbd4bbab6a43cd53e4bf3bb71debc71
block: add flush callback

This patch adds callback for flush request. This callback is responsible
for flushing whole block devices stack. bdrv_flush function does not
proceed to underlying devices. It should be performed by this callback
function, if needed.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/io.c
include/block/block_int.h