Patchwork bdrv_co_flush_to_disk() don't flush as expected

login
register
mail settings
Submitter namei.unix@gmail.com
Date Jan. 18, 2013, 4:28 p.m.
Message ID <50F9782F.5090401@gmail.com>
Download mbox | patch
Permalink /patch/213671/
State New
Headers show

Comments

namei.unix@gmail.com - Jan. 18, 2013, 4:28 p.m.
On 01/18/2013 11:56 PM, Stefan Hajnoczi wrote:
> How are you checking that sd_co_flush_to_disk() is called?  Please
> post the diff.

Okay, this is where I added printf().

Yuan

     }

Patch

diff --git a/block/sheepdog.c b/block/sheepdog.c
index 3e49bb8..41edd46 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -1714,6 +1714,7 @@  static int coroutine_fn
sd_co_flush_to_disk(BlockDriverState *bs)
     AIOReq *aio_req;
     int ret;

+    printf("hello\n");
     if (s->cache_flags != SD_FLAG_CMD_CACHE) {
         return 0;