qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] block: discard alignment fixes
@ 2025-04-09 18:29 Stefan Hajnoczi
  2025-04-09 18:29 ` [PATCH 1/2] file-posix: probe discard alignment on Linux block devices Stefan Hajnoczi
  2025-04-09 18:29 ` [PATCH 2/2] block/io: skip head/tail requests on EINVAL Stefan Hajnoczi
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2025-04-09 18:29 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, qemu-block, Stefan Hajnoczi, Hanna Czenczek,
	Kevin Wolf

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-04-11 16:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09 18:29 [PATCH 0/2] block: discard alignment fixes Stefan Hajnoczi
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

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).