From patchwork Fri Jan 18 16:28:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: bdrv_co_flush_to_disk() don't flush as expected Date: Fri, 18 Jan 2013 06:28:31 -0000 From: namei.unix@gmail.com X-Patchwork-Id: 213671 Message-Id: <50F9782F.5090401@gmail.com> To: Stefan Hajnoczi Cc: Kevin Wolf , Paolo Bonzini , qemu-devel 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;