summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2013-04-28 21:14:23 +0000
committersmh <smh@FreeBSD.org>2013-04-28 21:14:23 +0000
commita5bbb03f952598b98bdac61a8e142f9e3908108b (patch)
tree5ed8e95a5e62f12783d8960c215e5cd7cd673812 /sys/cam
parent5ae05b2097f7b2b953f828e71d1d180e2504f5ab (diff)
downloadFreeBSD-src-a5bbb03f952598b98bdac61a8e142f9e3908108b.zip
FreeBSD-src-a5bbb03f952598b98bdac61a8e142f9e3908108b.tar.gz
Correct comment typo's
Add missing comment Reviewed by: pjd (mentor) Approved by: pjd (mentor) MFC after: 2 weeks
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/ata/ata_da.c2
-rw-r--r--sys/cam/scsi/scsi_da.c8
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/cam/ata/ata_da.c b/sys/cam/ata/ata_da.c
index 206a9d6..9010e1f 100644
--- a/sys/cam/ata/ata_da.c
+++ b/sys/cam/ata/ata_da.c
@@ -1147,7 +1147,7 @@ adaregister(struct cam_periph *periph, void *arg)
snprintf(announce_buf, sizeof(announce_buf),
"kern.cam.ada.%d.write_cache", periph->unit_number);
TUNABLE_INT_FETCH(announce_buf, &softc->write_cache);
- /* Disable queue sorting for non-rotatational media by default */
+ /* Disable queue sorting for non-rotational media by default. */
if (cgd->ident_data.media_rotation_rate == 1)
softc->sort_io_queue = 0;
else
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index af4c8f5..418a997 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -3058,6 +3058,10 @@ dadone(struct cam_periph *periph, union ccb *done_ccb)
bdc = (struct scsi_vpd_block_characteristics *)csio->data_ptr;
if ((csio->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP) {
+ /*
+ * Disable queue sorting for non-rotational media
+ * by default.
+ */
if (scsi_2btoul(bdc->medium_rotation_rate) ==
SVPD_BDC_RATE_NONE_ROTATING)
softc->sort_io_queue = 0;
@@ -3106,8 +3110,8 @@ dadone(struct cam_periph *periph, union ccb *done_ccb)
ATA_DSM_BLK_RANGES);
}
/*
- * Disable queue sorting for non-rotatational media
- * by default
+ * Disable queue sorting for non-rotational media
+ * by default.
*/
if (ata_params->media_rotation_rate == 1)
softc->sort_io_queue = 0;
OpenPOWER on IntegriCloud