Yosuke Iwamatsu
2009-Feb-19 10:44 UTC
[Xen-devel] [PATCH] ioemu: block-vbd: Fix vbd_aio_flush()
Call the completion function if flush features are not supported in blkfront. Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com> diff --git a/block-vbd.c b/block-vbd.c index 4341259..129a1f5 100644 --- a/block-vbd.c +++ b/block-vbd.c @@ -261,7 +261,8 @@ static BlockDriverAIOCB *vbd_aio_flush(BlockDriverState *bs, BDRVVbdState *s = bs->opaque; VbdAIOCB *acb = NULL; - if (s->info.mode == O_RDONLY) { + if (s->info.mode == O_RDONLY || + s->info.barrier != 1 || s->info.flush != 1) { cb(opaque, 0); return NULL; } _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel