diff options
author | Christoph Hellwig <hch@lst.de> | 2020-08-30 12:00:10 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-09-27 09:14:19 +0200 |
commit | 936fab503ff4af94f5f9c0b549f3ab4d435500ec (patch) | |
tree | 2017adcbb8a5ad45fb2bbcc2c2a2e36f2e196fd3 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ddd3d1051797b9f907ab9799f5ba50398c530676 (diff) |
nvme: fix error handling in nvme_ns_report_zones
nvme_submit_sync_cmd can return positive NVMe error codes in addition to
the negative Linux error code, which are currently ignored. Fix this
by removing __nvme_ns_report_zones and handling the errors from
nvme_submit_sync_cmd in the caller instead of multiplexing the return
value and the number of zones reported into a single return value.
Fixes: 240e6ee272c0 ("nvme: support for zoned namespaces")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions