aboutsummaryrefslogtreecommitdiffstats
path: root/sys/cam/nvme/nvme_da.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-08-29 15:29:57 +0000
committerWarner Losh <imp@FreeBSD.org>2017-08-29 15:29:57 +0000
commit519772814de2f8935fa2c259f5e4e66b28e1e4a7 (patch)
tree1e437edcd63b228794d5f45a79222fcbbf198f6b /sys/cam/nvme/nvme_da.c
parent850564b948d685510e24f5869265298a0c830fa1 (diff)
downloadsrc-519772814de2f8935fa2c259f5e4e66b28e1e4a7.tar.gz
src-519772814de2f8935fa2c259f5e4e66b28e1e4a7.zip
Add CAM/NVMe support for CAM_DATA_SG
This adds support in pass(4) for data to be described with a scatter-gather list (sglist) to augment the existing (single) virtual address. Differential Revision: https://reviews.freebsd.org/D11361 Submitted by: Chuck Tuffli Reviewed by: imp@, scottl@, kenm@
Notes
Notes: svn path=/head/; revision=322997
Diffstat (limited to 'sys/cam/nvme/nvme_da.c')
-rw-r--r--sys/cam/nvme/nvme_da.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
index a6da18cee0ba..f4b62f2086d7 100644
--- a/sys/cam/nvme/nvme_da.c
+++ b/sys/cam/nvme/nvme_da.c
@@ -1010,12 +1010,7 @@ ndadone(struct cam_periph *periph, union ccb *done_ccb)
bp->bio_resid = bp->bio_bcount;
bp->bio_flags |= BIO_ERROR;
} else {
- if (state == NDA_CCB_TRIM)
- bp->bio_resid = 0;
- else
- bp->bio_resid = nvmeio->resid;
- if (bp->bio_resid > 0)
- bp->bio_flags |= BIO_ERROR;
+ bp->bio_resid = 0;
}
if (state == NDA_CCB_TRIM)
free(bp->bio_driver2, M_NVMEDA);