All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] block: discard alignment fixes
@ 2025-04-17 15:05 Stefan Hajnoczi
  2025-04-17 15:05 ` [PATCH v4 1/2] file-posix: probe discard alignment on Linux block devices Stefan Hajnoczi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2025-04-17 15:05 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-block, Stefan Hajnoczi, Fam Zheng, Hanna Reitz, Kevin Wolf

v4:
- Mention -EINVAL in bdrv_co_pdiscard() comment [Kevin]
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         | 15 +++++++----
 2 files changed, 76 insertions(+), 6 deletions(-)

-- 
2.49.0



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

end of thread, other threads:[~2025-04-25 14:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-17 15:05 [PATCH v4 0/2] block: discard alignment fixes Stefan Hajnoczi
2025-04-17 15:05 ` [PATCH v4 1/2] file-posix: probe discard alignment on Linux block devices Stefan Hajnoczi
2025-04-17 15:05 ` [PATCH v4 2/2] block/io: skip head/tail requests on EINVAL Stefan Hajnoczi
2025-04-25 14:42 ` [PATCH v4 0/2] block: discard alignment fixes Kevin Wolf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.