summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorJohn Garry <john.g.garry@oracle.com>2026-06-30 10:27:17 +0000
committerKeith Busch <kbusch@kernel.org>2026-07-06 11:38:07 -0700
commitdd516cd7624648c71d338d99368587f10ecc9f0b (patch)
tree809547e0d6f1d573f24a30e1559249a78e248c49 /tools/perf/scripts/python/bin/stackcollapse-report
parent0114dd303b373522dea06053aabae34bdd33a7c4 (diff)
nvme: handle positive error codes in nuse_show()
Function __nvme_submit_sync_cmd() returns a positive error code for NVMe errors. Otherwise, we get 0 for success or a negative error code for a kernel error. In nuse_show() -> ns_{head}_update_nuse() -> nvme_identify_ns() -> nvme_submit_sync_cmd() -> __nvme_submit_sync_cmd(), we then may get a positive error code returned. Function nuse_show() - being a device attr handler - should return the number of bytes written to the buffer or a negative error code. Convert any positive NVMe error code to -EIO. Signed-off-by: John Garry <john.g.garry@oracle.com> 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