nvmet: add error log support for bdev backend
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Wed, 12 Dec 2018 23:11:42 +0000 (15:11 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 08:59:05 +0000 (09:59 +0100)
commit3b031d15995f3e4c43e38159072f07efe3fa35d9
tree42d515a7e730bd76deb77b3308ca881b23296900
parent2da6e00580f5bc13ed0ba0acaa9d7ce0df226e7e
nvmet: add error log support for bdev backend

This patch adds the support for the block device backend to populate the
error log entries. Here we map the blk_status_t to the NVMe status.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/io-cmd-bdev.c