Re: [Qemu-devel] [PATCH 09/15] linux-aio: fix submit aio as a batch

2014-07-30 Thread Paolo Bonzini
Il 30/07/2014 19:32, Ming Lei ha scritto: > On Wed, Jul 30, 2014 at 9:59 PM, Paolo Bonzini wrote: >> Il 30/07/2014 13:39, Ming Lei ha scritto: >>> In the enqueue path, we can't complete request, otherwise >>> "Co-routine re-entered recursively" may be caused, so this >>> patch fixes the issue with

Re: [Qemu-devel] [PATCH 09/15] linux-aio: fix submit aio as a batch

2014-07-30 Thread Ming Lei
On Wed, Jul 30, 2014 at 9:59 PM, Paolo Bonzini wrote: > Il 30/07/2014 13:39, Ming Lei ha scritto: >> In the enqueue path, we can't complete request, otherwise >> "Co-routine re-entered recursively" may be caused, so this >> patch fixes the issue with below ideas: >> >> - for -EAGAIN or parti

Re: [Qemu-devel] [PATCH 09/15] linux-aio: fix submit aio as a batch

2014-07-30 Thread Paolo Bonzini
Il 30/07/2014 13:39, Ming Lei ha scritto: > In the enqueue path, we can't complete request, otherwise > "Co-routine re-entered recursively" may be caused, so this > patch fixes the issue with below ideas: > > - for -EAGAIN or partial completion, retry the submission by > an introduced

[Qemu-devel] [PATCH 09/15] linux-aio: fix submit aio as a batch

2014-07-30 Thread Ming Lei
In the enqueue path, we can't complete request, otherwise "Co-routine re-entered recursively" may be caused, so this patch fixes the issue with below ideas: - for -EAGAIN or partial completion, retry the submission by an introduced event handler - for part of completion, al