diff options
| author | Stefan Hajnoczi | 2013-07-02 15:36:25 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2013-07-05 10:52:23 +0200 |
| commit | 58fda173e1156d24e5ff62361774715152188a07 (patch) | |
| tree | 1dfab6e26b536426145698431f32e2510b85b076 /linux-user/alpha | |
| parent | curl: refuse to open URL from HTTP server without range support (diff) | |
| download | qemu-58fda173e1156d24e5ff62361774715152188a07.tar.gz qemu-58fda173e1156d24e5ff62361774715152188a07.tar.xz qemu-58fda173e1156d24e5ff62361774715152188a07.zip | |
block: fix bdrv_flush() ordering in bdrv_close()
Since 80ccf93b we flush the block device during close. The
bdrv_drain_all() call should come before bdrv_flush() to ensure guest
write requests have completed. Otherwise we may miss pending writes
when flushing.
Call bdrv_drain_all() again for safety as the final step after
bdrv_flush(). This should not be necessary but we can be paranoid here
in case bdrv_flush() left I/O pending.
Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-user/alpha')
0 files changed, 0 insertions, 0 deletions
