All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ioemu: block-vbd: Fix vbd_aio_flush()
@ 2009-02-19 10:44 Yosuke Iwamatsu
  0 siblings, 0 replies; only message in thread
From: Yosuke Iwamatsu @ 2009-02-19 10:44 UTC (permalink / raw)
  To: xen-devel

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;
     }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-19 10:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-19 10:44 [PATCH] ioemu: block-vbd: Fix vbd_aio_flush() Yosuke Iwamatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.