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 14:20:23 +0000 (08:20 -0600)
commit073a52da7628fadff03572bd227a1f49c619417a
tree102930e93799061fa7996d3b6d7c530ff3d68c25
parentdca580c99656a7684b65ac31356940586e5da482
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