From: Stefan Hajnoczi <stefanha@redhat.com>
To: qemu-devel@nongnu.org
Cc: Fam Zheng <fam@euphon.net>, <qemu-block@nongnu.org>,
Stefan Hajnoczi <stefanha@redhat.com>,
Hanna Czenczek <hreitz@redhat.com>, Kevin Wolf <kwolf@redhat.com>
Subject: [PATCH 0/2] block: discard alignment fixes
Date: Wed, 9 Apr 2025 14:29:12 -0400 [thread overview]
Message-ID: <20250409182914.4725-1-stefanha@redhat.com> (raw)
Two discard alignment issues were identified in
https://issues.redhat.com/browse/RHEL-86032:
1. pdiscard_alignment is not populated for host_device in file-posix.c.
2. Misaligned head/tail discard requests are not skipped when file-posix.c
returns -EINVAL. This causes an undesired pause when guests are configured
with werror=stop.
Stefan Hajnoczi (2):
file-posix: probe discard alignment on Linux block devices
block/io: skip head/tail requests on EINVAL
block/file-posix.c | 56 +++++++++++++++++++++++++++++++++++++++++++++-
block/io.c | 6 ++++-
2 files changed, 60 insertions(+), 2 deletions(-)
--
2.49.0
next reply other threads:[~2025-04-09 18:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-09 18:29 Stefan Hajnoczi [this message]
2025-04-09 18:29 ` [PATCH 1/2] file-posix: probe discard alignment on Linux block devices Stefan Hajnoczi
2025-04-11 16:33 ` Eric Blake
2025-04-09 18:29 ` [PATCH 2/2] block/io: skip head/tail requests on EINVAL 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=20250409182914.4725-1-stefanha@redhat.com \
--to=stefanha@redhat.com \
--cc=fam@euphon.net \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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).