]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f60af52c8ebeb633a0e7987b4d6474315468962
tree3937ee6dc83ce4d1a5430c60de37a71881a0bcd9
parentffe67c32e5526df7c94e18796c0914852472b081
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