summaryrefslogtreecommitdiffstats
path: root/sys/dev/nvd
diff options
context:
space:
mode:
authorjimharris <jimharris@FreeBSD.org>2013-10-08 15:44:04 +0000
committerjimharris <jimharris@FreeBSD.org>2013-10-08 15:44:04 +0000
commit509a7951936691b0bf8b3257febf8fa9a25dbdc0 (patch)
treeaa31a19ca886956f2cbdfd2767059ed99e6f1fae /sys/dev/nvd
parent4e3872abc7d06e32c81c7d991a15245489dfa749 (diff)
downloadFreeBSD-src-509a7951936691b0bf8b3257febf8fa9a25dbdc0.zip
FreeBSD-src-509a7951936691b0bf8b3257febf8fa9a25dbdc0.tar.gz
Add driver-assisted striping for upcoming Intel NVMe controllers that can
benefit from it. Sponsored by: Intel Reviewed by: kib (earlier version), carl Approved by: re (hrs) MFC after: 1 week
Diffstat (limited to 'sys/dev/nvd')
-rw-r--r--sys/dev/nvd/nvd.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/nvd/nvd.c b/sys/dev/nvd/nvd.c
index b2e880b..b48fb35 100644
--- a/sys/dev/nvd/nvd.c
+++ b/sys/dev/nvd/nvd.c
@@ -187,17 +187,6 @@ nvd_done(void *arg, const struct nvme_completion *cpl)
atomic_add_int(&ndisk->cur_depth, -1);
- /*
- * TODO: add more extensive translation of NVMe status codes
- * to different bio error codes (i.e. EIO, EINVAL, etc.)
- */
- if (nvme_completion_is_error(cpl)) {
- bp->bio_error = EIO;
- bp->bio_flags |= BIO_ERROR;
- bp->bio_resid = bp->bio_bcount;
- } else
- bp->bio_resid = 0;
-
biodone(bp);
}
OpenPOWER on IntegriCloud