[PATCH] nvme: make nvme error status codes converted to errno detailed

Christoph Hellwig hch at infradead.org
Thu Mar 30 10:20:38 PDT 2017


On Thu, Mar 30, 2017 at 01:22:37PM -0400, Keith Busch wrote:
> I don't see a problem having more appropriate errno's here. The block
> layer looks okay to accept any value, and the spec folks might be happy
> to see their thought out status codes don't all become EIO. :)

The block layer accepts all and treats a few magically.  That's why I
want to get rid of errno values in the block layer entirely and replace
the with a few status codes that make the special casing obvious.

> But just so we all know, the majority of those statuses are only possible
> to encounter with passthrough, and those are not translated to errno.

Exactly.



More information about the Linux-nvme mailing list