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

Keith Busch keith.busch at intel.com
Thu Mar 30 10:22:37 PDT 2017


On Thu, Mar 30, 2017 at 07:32:50PM +0800, guanjunxiong wrote:
>    Current block layer ends the requests with errors and logs different errno in a
> human readable string. So I think the detailed conversion above make sense.Also ,
> as Sagi said, It'll be useful if we can log the specific error (as a human readable
> string).
>    Anyway, since this patch would conflict with your rework in this area,
> I decide to suspend this patch.
>    BTW, what's the plan of your rework in this area?

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. :)

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.



More information about the Linux-nvme mailing list