diff options
| author | Xixin Liu <liuxixin@kylinos.cn> | 2026-06-25 10:00:00 +0800 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-07-06 11:15:26 -0700 |
| commit | 09c9062d4f62199a634a45e2bb9e6e8e572cc78c (patch) | |
| tree | 419d7d0bdbf631a11fde6bcdb44c815fa2967115 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 4fe024eeba34b87b7e7388139d7836cde9928c6a (diff) | |
nvme: zns: cap zone report nr_zones by DMA buffer size
With Partial Report (PR=1), the Number of Zones (NZ) field in the report
header must equal the number of zone descriptors fully transferred in the
DMA buffer (ZNS Command Set Specification Rev 1.2, section 3.4.2).
nvme_ns_report_zones() does not cap the parse loop by max_in_buf derived
from buflen. Cap nz with min3() over the device-reported count, nr_zones -
zone_idx, and max_in_buf.
Signed-off-by: Xixin Liu <liuxixin@kylinos.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
