John Snow 4085f5c7a2 block: reintroduce bdrv_flush_all
Commit fe1a9cbc moved the flush_all routine from the bdrv layer to the
block-backend layer. In doing so, however, the semantics of the routine
changed slightly such that flush_all now used blk_flush instead of
bdrv_flush.

blk_flush can fail if the attached device model reports that it is not
"available," (i.e. the tray is open.) This changed the semantics of
flush_all such that it can now fail for e.g. open CDROM drives.

Reintroduce bdrv_flush_all to regain the old semantics without having to
alter the behavior of blk_flush or blk_flush_all, which are already
'doing the right thing.'

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2016-09-29 14:13:13 +02:00
..
2016-01-20 13:36:23 +01:00
2016-09-23 13:36:10 +02:00
2016-09-15 15:32:22 +03:00
2016-09-29 14:13:13 +02:00
2016-09-23 13:10:43 +01:00
2016-09-23 11:42:52 +08:00
2016-09-13 11:00:56 +01:00
2016-08-03 18:44:56 +02:00
2016-08-15 15:52:29 +02:00
2016-07-06 10:52:04 +02:00
2016-09-13 11:00:55 +01:00
2016-09-15 15:32:22 +03:00
2016-06-07 18:19:24 +03:00
2016-01-20 13:36:23 +01:00
2016-01-20 13:36:23 +01:00
2016-01-20 13:36:23 +01:00
2016-09-15 15:32:22 +03:00
2016-09-23 11:42:52 +08:00
2016-09-23 11:42:52 +08:00
2016-09-23 11:42:52 +08:00
2016-09-05 19:06:48 +02:00
2016-09-23 11:42:52 +08:00
2016-01-20 13:36:23 +01:00