Re: [Qemu-devel] [PATCH 1/2] sheepdog: multiplex the rw FD to flush cache

2013-01-15 Thread MORITA Kazutaka
At Mon, 14 Jan 2013 14:01:02 +0800, Liu Yuan wrote: @@ -964,7 +971,10 @@ static int coroutine_fn add_aio_request(BDRVSheepdogState *s, AIOReq *aio_req, memset(hdr, 0, sizeof(hdr)); -if (aiocb_type == AIOCB_READ_UDATA) { +if (aiocb_type == AIOCB_FLUSH_CACHE) { +

Re: [Qemu-devel] [PATCH 1/2] sheepdog: multiplex the rw FD to flush cache

2013-01-14 Thread Stefan Hajnoczi
On Mon, Jan 14, 2013 at 02:01:02PM +0800, Liu Yuan wrote: From: Liu Yuan tailai...@taobao.com This will reduce sockfds connected to the sheep server to one, which simply the future hacks. Cc: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp Cc: Kevin Wolf kw...@redhat.com Cc: Stefan

[Qemu-devel] [PATCH 1/2] sheepdog: multiplex the rw FD to flush cache

2013-01-13 Thread Liu Yuan
From: Liu Yuan tailai...@taobao.com This will reduce sockfds connected to the sheep server to one, which simply the future hacks. Cc: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp Cc: Kevin Wolf kw...@redhat.com Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Liu Yuan tailai...@taobao.com