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

2014-09-04 Thread Ming Lei
On Thu, Sep 4, 2014 at 10:59 PM, Benoît Canet wrote: > The Thursday 14 Aug 2014 à 17:41:41 (+0800), Ming Lei wrote : >> 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: > > s/with belo

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

2014-09-04 Thread Benoît Canet
The Thursday 14 Aug 2014 à 17:41:41 (+0800), Ming Lei wrote : > 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: s/with below ideas/with the following ideas/g > > - for -EAGAIN o

[Qemu-devel] [PATCH 1/4] linux-aio: fix submit aio as a batch

2014-08-14 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 submision by schedule an BH in following completion cb - for part of c