bdev/nvme: print errno on spdk_nvme_ns_cmd submission failure

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I785bfd663a2921f5e4c0630bce7906a928f26376
This commit is contained in:
Jim Harris 2017-05-17 16:18:50 -07:00 committed by Ben Walker
parent 6fba6ff448
commit af781ee003

View File

@ -1047,7 +1047,7 @@ bdev_nvme_queue_cmd(struct nvme_bdev *bdev, struct spdk_nvme_qpair *qpair,
}
if (rc != 0) {
SPDK_ERRLOG("IO failed\n");
SPDK_ERRLOG("%s failed: rc = %d\n", direction == BDEV_DISK_READ ? "readv" : "writev", rc);
}
return rc;
}