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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.