]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: fix scsi translation error handling
authorChristoph Hellwig <hch@lst.de>
Fri, 22 May 2015 09:12:41 +0000 (11:12 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:31:43 +0000 (16:31 -0700)
commit8b02887de45d127d1c2941dc01f5abdc0b1539c4
treebf74e3e17dff0eefd70882f808556c37a882522f
parent08b2e4375ecae5173a559da5ee3d49348cdf7d96
nvme: fix scsi translation error handling

Erorr handling for the scsi translation was completely broken, as there
were two different positive error number spaces overlapping.  Fix this
up by removing one of them, and centralizing the generation of the other
positive values in a single place.  Also fix up a few places that didn't
handle the NVMe error codes properly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit e61b0a86cac83c3bf501705c8d52a0a29cecf091)

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/block/nvme-scsi.c