]> git.proxmox.com Git - qemu.git/commit
virtio-blk: fix barrier support
authorChristoph Hellwig <hch@lst.de>
Wed, 19 May 2010 10:40:09 +0000 (12:40 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 27 May 2010 11:58:42 +0000 (13:58 +0200)
commit7e4f956056398f1dd3eb694177ef80cdab7c2f64
tree7738010689c2fb3f92b54524d8e9644735d15b5c
parent1fb9798b69d7a2fccce70aebe5c5162cf069d596
virtio-blk: fix barrier support

Before issuing the barrier to the block driver we need to flush our oustanding
queue of write requests, as the flush is supposed to be issued after them.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 618fbb84299780af96e3d4c4b6f2148656fe3708)
hw/virtio-blk.c