nvme: fix scsi translation error handling
authorChristoph Hellwig <hch@lst.de>
Fri, 22 May 2015 09:12:41 +0000 (11:12 +0200)
committerJens Axboe <axboe@fb.com>
Fri, 22 May 2015 14:36:36 +0000 (08:36 -0600)
commite61b0a86cac83c3bf501705c8d52a0a29cecf091
treea58f39cf361bcc9ca49f5b7ef574e21c915b147b
parentb90c48d0c11efe373a42a60e66e2ac2a503c287b
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>
drivers/block/nvme-scsi.c