[PATCH v2] nvme: limit Write Zeroes to 65536 logical blocks

Keith Busch kbusch at kernel.org
Wed Nov 18 08:03:36 PST 2026


On Mon, 16 Nov 2026 17:10:49 -0800, Ankit Gupta wrote:
> With nvme-tcp connected to nvmet-tcp at default settings, the target
> reports MDTS 0 and WZSL 0. A 33 MiB Write Zeroes request on a
> 512-byte-LBA namespace then completes successfully after zeroing only
> the first 1 MiB.
> 
> The native Write Zeroes command encodes the number of logical blocks
> in a zero-based 16-bit field. The namespace queue can advertise a
> larger limit, either through the MDTS fallback or through WZSL. In
> that case the host truncates the count when building the command and
> reports success after zeroing only part of the requested range.
> 
> [...]

Thanks, applied to nvme-7.4.

[1/1] nvme: limit Write Zeroes to 65536 logical blocks
      commit: 49a768272ae1445714efc6ab2b23f9de1398d61e
--
Keith Busch <kbusch at kernel.org>




More information about the Linux-nvme mailing list