[PATCH] nvme: zero the discard fallback page
Keith Busch
kbusch at kernel.org
Mon Aug 10 12:20:53 PDT 2026
On Thu, Jul 30, 2026 at 08:36:24PM +0900, Yehyeong Lee wrote:
> nvme_setup_discard() always maps sizeof(struct nvme_dsm_range) *
> NVME_DSM_MAX_RANGES = 4096 bytes as the DSM payload however many ranges
> the command declares, because some devices ignore the 'Number of Ranges'
> field - the Fixes: commit records two that read past the declared ranges.
> A single-range discard fills only the first 16 bytes.
Thanks, applied to nvme-7.3.
More information about the Linux-nvme
mailing list