Skip to contentSkip to conversation

nvme-status: Don't reduce all negative statuses to ECOMM

PATCH Applied Sagi Grimberg 2 participants 2 messages Sep 9, 2020 – Sep 10, 2020 NVMe

lore
Share & tools
lore

Sagi Grimberg

author maintainer
#0 lore raw

PATCH v2 1/1 nvme-status: Don't reduce all negative statuses to ECOMM

There should be no reason why we should reduce all the semantic status codes we are getting from the device/driver to a single meaningless status code.

---
Changes from v1:
- return errno instead of status

 nvme-status.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
nvme-status.c +1 -1
index a78c1fd02797..7821de2df288 100644
@@ -142,7 +142,7 @@ __u8 nvme_status_to_errno(int status, bool fabrics)
 		return 0;
 
 	if (status < 0)
-		return ECOMM;
+		return errno;
 
 	/*
 	 * The actual status code is enough with masking 0xff, but we need to
Signature · 7 lines
2.25.1


_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme