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>
This commit is contained in:
Christoph Hellwig 2015-05-22 11:12:41 +02:00 коммит произвёл Jens Axboe
Родитель b90c48d0c1
Коммит e61b0a86ca
1 изменённых файлов: 128 добавлений и 252 удалений

Разница между файлами не показана из-за своего большого размера Загрузить разницу