nvme: make nvme_error_status private
authorChristoph Hellwig <hch@lst.de>
Thu, 20 Apr 2017 14:02:58 +0000 (16:02 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 20 Apr 2017 18:16:10 +0000 (12:16 -0600)
commit65ba6b54e7c1fe7751388f5da6ad87c2d1bee3ae
tree3937ee6dc83ce4d1a5430c60de37a71881a0bcd9
parent27fa9bc54541dabc3fabe1c520d342f5add0379b
nvme: make nvme_error_status private

Currently it's used by the lighnvm passthrough ioctl, but we'd like to make
it private in preparation of block layer specific error code.  Lighnvm already
returns the real NVMe status anyway, so I think we can just limit it to
returning -EIO for any status set.

This will need a careful audit from the lightnvm folks, though.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c
drivers/nvme/host/lightnvm.c
drivers/nvme/host/nvme.h