From: Kevin Wolf <kwolf@redhat.com>
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
Subject: [Qemu-devel] [RFC PATCH v2 0/6] linux-aio: Convert to coroutines
Date: Fri, 5 Dec 2014 17:06:02 +0100 [thread overview]
Message-ID: <1417795568-3201-1-git-send-email-kwolf@redhat.com> (raw)
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
next reply other threads:[~2014-12-05 16:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-05 16:06 Kevin Wolf [this message]
2014-12-05 16:06 ` [Qemu-devel] [RFC PATCH v2 1/6] qemu-img bench Kevin Wolf
2014-12-05 16:06 ` [Qemu-devel] [RFC PATCH v2 2/6] raw-posix: Convert Linux AIO submission to coroutines Kevin Wolf
2014-12-05 16:06 ` [Qemu-devel] [RFC PATCH v2 3/6] linux-aio: Don't reenter request coroutine recursively Kevin Wolf
2014-12-05 16:06 ` [Qemu-devel] [RFC PATCH v2 4/6] linux-aio: Support partial io_submits Kevin Wolf
2014-12-05 16:06 ` [Qemu-devel] [RFC PATCH v2 5/6] linux-aio: On -EAGAIN, wait for completions Kevin Wolf
2014-12-05 16:06 ` [Qemu-devel] [RFC PATCH v2 6/6] linux-aio: Queue requests instead of returning -EAGAIN Kevin Wolf
2014-12-05 18:15 ` Paolo Bonzini
2014-12-08 9:34 ` Kevin Wolf
2014-12-10 11:38 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1417795568-3201-1-git-send-email-kwolf@redhat.com \
--to=kwolf@redhat.com \
--cc=ming.lei@canonical.com \
--cc=mreitz@redhat.com \
--cc=pbonzini@redhat.com \
--cc=pl@kamp.de \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).