summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorXixin Liu <liuxixin@kylinos.cn>2026-07-13 18:00:00 +0800
committerKeith Busch <kbusch@kernel.org>2026-08-11 08:53:29 -0700
commit86985da12699360a2b20748c5a492ddd92db8c47 (patch)
tree5a19fee636c74a848b9236f87ecd260bcbf3a8ce /tools/perf/scripts/python/bin
parent36ac05f7cfd59d90c597071304b14e98090d5dd1 (diff)
nvmet: zns: reject full zone report when buffer is too small
Zone Management Receive uses the Partial Report (PR) bit in dword 13. On a partial report (PR bit set), the host accepts an incomplete listing and Number of Zones must not exceed the zone descriptors copied to the host buffer. On a full report (PR bit clear), Number of Zones is the total number of matching zones and every descriptor must fit in the buffer (ZNS Command Set Specification Rev 1.2, section 3.4.2). nvmet_bdev_zone_zmgmt_recv_work() already caps Number of Zones for partial reports, but on a full report it may still succeed when the buffer only holds part of the matching descriptors. Reject the command in that case. 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')
0 files changed, 0 insertions, 0 deletions