[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/2] block: discard alignment fixes
From: |
Stefan Hajnoczi |
Subject: |
[PATCH v2 0/2] block: discard alignment fixes |
Date: |
Thu, 10 Apr 2025 14:41:01 -0400 |
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 | 56 +++++++++++++++++++++++++++++++++++++++++++++-
block/io.c | 6 ++++-
2 files changed, 60 insertions(+), 2 deletions(-)
--
2.49.0