]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9bfb3ca04e5af514621bceff3208f1ae5839e747
treea58f39cf361bcc9ca49f5b7ef574e21c915b147b
parent87ceabf67bace2a587e8b091b8f9623c092a7949
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