From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bou9c-0002tQ-8X for qemu-devel@nongnu.org; Tue, 27 Sep 2016 11:18:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bou9b-0000nw-E7 for qemu-devel@nongnu.org; Tue, 27 Sep 2016 11:18:44 -0400 From: Stefan Hajnoczi Date: Tue, 27 Sep 2016 16:18:33 +0100 Message-Id: <1474989516-18255-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/3] linux-aio: fix "Co-routine re-entered recursively" error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org, Roman Pen , Fam Zheng , Stefan Hajnoczi v2: * Add missing backtrace in Patch 3 It's possible to hit the "Co-routine re-entered recursively" error with -drive format=qcow2,aio=native. This is a regression introduced by a linux-aio.c optimization. See Patch 3 for details. Patches 1 & 2 add a new coroutine API called qemu_coroutine_entered() for checking whether a coroutine is currently "entered". This makes it possible to avoid re-entering coroutines recursively. Stefan Hajnoczi (3): coroutine: add qemu_coroutine_entered() function test-coroutine: test qemu_coroutine_entered() linux-aio: fix re-entrant completion processing block/linux-aio.c | 9 ++++++--- include/qemu/coroutine.h | 13 +++++++++++++ tests/test-coroutine.c | 42 ++++++++++++++++++++++++++++++++++++++++++ util/qemu-coroutine.c | 5 +++++ 4 files changed, 66 insertions(+), 3 deletions(-) -- 2.7.4