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 > > This will reduce sockfds connected to the sheep server to one, which simply > the > future hacks. > > Cc: MORITA Kazutaka > Cc: Kevin Wolf > Cc: Stefan Hajnoczi > Signed-off-by: Liu Yuan > --- > block/sheepdog.c

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

2013-01-13 Thread Liu Yuan
From: Liu Yuan This will reduce sockfds connected to the sheep server to one, which simply the future hacks. Cc: MORITA Kazutaka Cc: Kevin Wolf Cc: Stefan Hajnoczi Signed-off-by: Liu Yuan --- block/sheepdog.c | 64 +++--- 1 file changed, 27