[PATCH] nvme: fix error handling in nvme_ns_report_zones

Keith Busch kbusch at kernel.org
Tue Aug 25 13:15:06 EDT 2020


On Tue, Aug 25, 2020 at 11:58:24AM +0200, Christoph Hellwig wrote:
> 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 zone size into a single return value.

Indeed, looks good.

Reviewed-by: Keith Busch <kbusch at kernel.org>



More information about the Linux-nvme mailing list