]> git.proxmox.com Git - mirror_qemu.git/commit - block/io.c
block: Handle flush error in bdrv_pwrite_sync()
authorKevin Wolf <kwolf@redhat.com>
Fri, 4 Mar 2016 13:16:51 +0000 (14:16 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Mar 2016 10:16:01 +0000 (12:16 +0200)
commit855a6a93a12b60b2799eb5999baabd7a85a37c99
tree541a6821ce8915c6cf4d9511906978be85107cef
parent72e775c7d9de3eaa35a6edaf9d87cedee149d0f5
block: Handle flush error in bdrv_pwrite_sync()

We don't want to silently ignore a flush error.

Also, there is little point in avoiding the flush for writethrough modes
and once WCE is moved to the BB layer, we definitely need the flush here
because bdrv_pwrite() won't involve one any more.

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