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