virtio-blk: fix barrier support
authorChristoph Hellwig <hch@lst.de>
Wed, 19 May 2010 10:40:09 +0000 (12:40 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 May 2010 09:49:19 +0000 (11:49 +0200)
commit22dabdf022d51ec399e796f00de0c998f8668830
treeba3fdaa1fe637ac824767fccb3e1df797d7fc46a
parentd3194c2213bee904b8acadf4d0fc15028d3a1815
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>
hw/virtio-blk.c