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

v3:
- Refine error handling when pdiscard_alignment is not a multiple of request_alignment [Hanna]
v2:
- Fix inverted logic in alignment check [Qing Wang]

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 | 67 +++++++++++++++++++++++++++++++++++++++++++++-
 block/io.c         |  6 ++++-
 2 files changed, 71 insertions(+), 2 deletions(-)

-- 
2.49.0



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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-14 20:12 [PATCH v3 0/2] block: discard alignment fixes Stefan Hajnoczi
2025-04-14 20:12 ` [PATCH v3 1/2] file-posix: probe discard alignment on Linux block devices Stefan Hajnoczi
2025-04-17 16:27   ` Eric Blake
2025-04-17 16:31     ` Eric Blake
2025-04-14 20:12 ` [PATCH v3 2/2] block/io: skip head/tail requests on EINVAL Stefan Hajnoczi
2025-04-17  8:49   ` Kevin Wolf
2025-04-17 15:02     ` Stefan Hajnoczi
2025-04-17 15:32     ` Eric Blake

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