Re: [Qemu-devel] [PATCH v1 2/3] linux-aio: implement io plug and unplug

2014-06-30 Thread Paolo Bonzini
Il 01/07/2014 03:05, Ming Lei ha scritto: > Busy waiting is not acceptable here (it can be unbounded if, for example, an > NFS server is on the other side of a network partition). You have to add a > bottom half to qemu_laio_state that calls ioq_submit, and schedule it after > calling io_getevent

Re: [Qemu-devel] [PATCH v1 2/3] linux-aio: implement io plug and unplug

2014-06-30 Thread Ming Lei
On Tue, Jul 1, 2014 at 1:31 AM, Paolo Bonzini wrote: > Il 30/06/2014 17:47, Ming Lei ha scritto: > >> From: Ming Lei >> >> This patch implements .bdrv_io_plug and .bdrv_io_unplug >> callbacks for linux-aio Block Drivers, so that submitting >> I/O at batch can be supported on linux-aio. >> >> Sign

Re: [Qemu-devel] [PATCH v1 2/3] linux-aio: implement io plug and unplug

2014-06-30 Thread Paolo Bonzini
Il 30/06/2014 17:47, Ming Lei ha scritto: From: Ming Lei This patch implements .bdrv_io_plug and .bdrv_io_unplug callbacks for linux-aio Block Drivers, so that submitting I/O at batch can be supported on linux-aio. Signed-off-by: Ming Lei --- block/linux-aio.c | 85

[Qemu-devel] [PATCH v1 2/3] linux-aio: implement io plug and unplug

2014-06-30 Thread Ming Lei
From: Ming Lei This patch implements .bdrv_io_plug and .bdrv_io_unplug callbacks for linux-aio Block Drivers, so that submitting I/O at batch can be supported on linux-aio. Signed-off-by: Ming Lei --- block/linux-aio.c | 85 +++-- block/raw-aio