Correct comment typo's

Add missing comment

Reviewed by:	pjd (mentor)
Approved by:	pjd (mentor)
MFC after:	2 weeks
This commit is contained in:
Steven Hartland 2013-04-28 21:14:23 +00:00
parent afbd1372e7
commit 62cc3a6314
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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;