bdrv_co_flush_to_disk() don't flush as expected

Submitted by namei.unix@gmail.com on Jan. 18, 2013, 4:28 p.m.

Details

Message ID 50F9782F.5090401@gmail.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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;