From: Stefan Hajnoczi <stefanha@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
qemu-block@nongnu.org, Max Reitz <mreitz@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Stefan Hajnoczi <stefan@redhat.com>,
Julia Suvorova <jusual@mail.ru>,
Aarushi Mehta <mehta.aaru20@gmail.com>
Subject: [Qemu-devel] [PATCH 0/3] block/io_uring: fix EINTR and resubmit short reads
Date: Mon, 15 Jul 2019 21:19:47 +0100 [thread overview]
Message-ID: <20190715201950.9444-1-stefanha@redhat.com> (raw)
Short reads are possible with cache=writeback (see Patch 3 for details).
Handle this by resubmitting requests until the read is completed.
Patch 1 adds trace events useful for debugging io_uring.
Patch 2 fixes EINTR. This lays the groundwork for resubmitting requests in
Patch 3.
Aarushi: Feel free to squash this into your patch series if you are happy with
the code, I don't mind if the authorship information is lost. After applying
these patches I can successfully boot a Fedora 30 guest qcow2 file with
cache=writeback.
Based-on: <20190610134905.22294-1-mehta.aaru20@gmail.com>
Stefan Hajnoczi (3):
block/io_uring: add submission and completion trace events
block/io_uring: fix EINTR request resubmission
block/io_uring: resubmit short buffered reads
block/io_uring.c | 136 ++++++++++++++++++++++++++++++++++-----------
block/trace-events | 6 +-
2 files changed, 108 insertions(+), 34 deletions(-)
--
2.21.0
next reply other threads:[~2019-07-15 20:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-15 20:19 Stefan Hajnoczi [this message]
2019-07-15 20:19 ` [Qemu-devel] [PATCH 1/3] block/io_uring: add submission and completion trace events Stefan Hajnoczi
2019-07-16 7:04 ` Philippe Mathieu-Daudé
2019-07-15 20:19 ` [Qemu-devel] [PATCH 2/3] block/io_uring: fix EINTR request resubmission Stefan Hajnoczi
2019-07-15 20:19 ` [Qemu-devel] [PATCH 3/3] block/io_uring: resubmit short buffered reads Stefan Hajnoczi
2019-07-16 7:15 ` Philippe Mathieu-Daudé
2019-08-21 22:20 ` [Qemu-devel] [Qemu-block] [PATCH 0/3] block/io_uring: fix EINTR and resubmit short reads John Snow
2019-08-22 9:16 ` Stefan Hajnoczi
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=20190715201950.9444-1-stefanha@redhat.com \
--to=stefanha@redhat.com \
--cc=jusual@mail.ru \
--cc=kwolf@redhat.com \
--cc=mehta.aaru20@gmail.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefan@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).