Re: [PATCH] block: report the correct discard alignment in sysfs
From: Jens Axboe
Date: Tue Nov 03 2026 - 11:55:38 EST
On Sat, 31 Oct 2026 12:20:24 +0200, Avi Weiss wrote:
> disk_discard_alignment_show() reports the physical I/O alignment offset
> instead of the discard alignment. Devices can specify these offsets
> independently, so the discard_alignment sysfs attribute can report the
> wrong value.
>
> Use bdev_discard_alignment() for the whole-disk attribute, as is already
> done for partitions.
>
> [...]
Applied, thanks!
[1/1] block: report the correct discard alignment in sysfs
commit: 2516f0413f8704a7370ef8a2eeae26c9bc438978
Best regards,
--
Jens Axboe