diff options
author | jimharris <jimharris@FreeBSD.org> | 2013-10-08 15:44:04 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2013-10-08 15:44:04 +0000 |
commit | 509a7951936691b0bf8b3257febf8fa9a25dbdc0 (patch) | |
tree | aa31a19ca886956f2cbdfd2767059ed99e6f1fae /sys/dev/nvd/nvd.c | |
parent | 4e3872abc7d06e32c81c7d991a15245489dfa749 (diff) | |
download | FreeBSD-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/nvd.c')
-rw-r--r-- | sys/dev/nvd/nvd.c | 11 |
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); } |