From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwvOn-0007Kv-Oy for qemu-devel@nongnu.org; Fri, 05 Dec 2014 11:06:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwvOh-0007VX-HX for qemu-devel@nongnu.org; Fri, 05 Dec 2014 11:06:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwvOh-0007Tz-B4 for qemu-devel@nongnu.org; Fri, 05 Dec 2014 11:06:23 -0500 From: Kevin Wolf Date: Fri, 5 Dec 2014 17:06:02 +0100 Message-Id: <1417795568-3201-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [RFC PATCH v2 0/6] linux-aio: Convert to coroutines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, ming.lei@canonical.com, pl@kamp.de, mreitz@redhat.com, stefanha@redhat.com, pbonzini@redhat.com This is my current branch for converting the linux-aio interface to coroutines. I started this as a performance optimisation, but I think it also makes it much easier to avoid the recursive coroutine reentrace that Ming Lei has sent a relatively complex callback-based patch for. See patch 3 for a quick attempt on fixing the same problem in a coroutine-based linux-aio implementation. Not ready to be merged mainly because of incomplete testing and benchmarking. v2: - Added patches 4-6 for handling of -EAGAIN and partial submits so that Ming Lei has a comparison to all of his callback-based series Kevin Wolf (6): qemu-img bench raw-posix: Convert Linux AIO submission to coroutines linux-aio: Don't reenter request coroutine recursively linux-aio: Support partial io_submits linux-aio: On -EAGAIN, wait for completions linux-aio: Queue requests instead of returning -EAGAIN block/linux-aio.c | 159 +++++++++++++++++++++++++++---------------------- block/raw-aio.h | 5 +- block/raw-posix.c | 62 +++++++++---------- qemu-img-cmds.hx | 6 ++ qemu-img.c | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ qemu-img.texi | 10 ++++ 6 files changed, 309 insertions(+), 107 deletions(-) -- 1.8.3.1