Re: [Qemu-devel] [PATCH 0/3] coroutine: avoid co_queue_wakeup recursion

2018-03-27 Thread Stefan Hajnoczi
On Thu, Mar 22, 2018 at 03:28:31PM +, Stefan Hajnoczi wrote: > co_queue_wakeup is currently implemented in a recursive fashion. Pathological > patterns of aio_co_enter() between coroutines can cause stack exhaustion. > > This patch series implements co_queue_wakeup iteratively and avoids stac

Re: [Qemu-devel] [PATCH 0/3] coroutine: avoid co_queue_wakeup recursion

2018-03-22 Thread Paolo Bonzini
On 22/03/2018 16:28, Stefan Hajnoczi wrote: > co_queue_wakeup is currently implemented in a recursive fashion. Pathological > patterns of aio_co_enter() between coroutines can cause stack exhaustion. > > This patch series implements co_queue_wakeup iteratively and avoids stack > exhaustion. > >

[Qemu-devel] [PATCH 0/3] coroutine: avoid co_queue_wakeup recursion

2018-03-22 Thread Stefan Hajnoczi
co_queue_wakeup is currently implemented in a recursive fashion. Pathological patterns of aio_co_enter() between coroutines can cause stack exhaustion. This patch series implements co_queue_wakeup iteratively and avoids stack exhaustion. This issue was originally reported with qemu-img convert b