Re: [PATCH] nvme: zero the discard fallback page
Keith Busch <[email protected]>
| Newsgroups | org.kernel.vger.linux-kernel,org.infradead.lists.linux-nvme,org.kernel.vger.stable |
|---|---|
| Message-ID | <anoklR7ptrDQwCtn@kbusch-mbp> |
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.