Correct comment typo's
Add missing comment Reviewed by: pjd (mentor) Approved by: pjd (mentor) MFC after: 2 weeks
This commit is contained in:
parent
afbd1372e7
commit
62cc3a6314
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250033
@ -1147,7 +1147,7 @@ adaregister(struct cam_periph *periph, void *arg)
|
|||||||
snprintf(announce_buf, sizeof(announce_buf),
|
snprintf(announce_buf, sizeof(announce_buf),
|
||||||
"kern.cam.ada.%d.write_cache", periph->unit_number);
|
"kern.cam.ada.%d.write_cache", periph->unit_number);
|
||||||
TUNABLE_INT_FETCH(announce_buf, &softc->write_cache);
|
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)
|
if (cgd->ident_data.media_rotation_rate == 1)
|
||||||
softc->sort_io_queue = 0;
|
softc->sort_io_queue = 0;
|
||||||
else
|
else
|
||||||
|
@ -3058,6 +3058,10 @@ dadone(struct cam_periph *periph, union ccb *done_ccb)
|
|||||||
bdc = (struct scsi_vpd_block_characteristics *)csio->data_ptr;
|
bdc = (struct scsi_vpd_block_characteristics *)csio->data_ptr;
|
||||||
|
|
||||||
if ((csio->ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP) {
|
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) ==
|
if (scsi_2btoul(bdc->medium_rotation_rate) ==
|
||||||
SVPD_BDC_RATE_NONE_ROTATING)
|
SVPD_BDC_RATE_NONE_ROTATING)
|
||||||
softc->sort_io_queue = 0;
|
softc->sort_io_queue = 0;
|
||||||
@ -3106,8 +3110,8 @@ dadone(struct cam_periph *periph, union ccb *done_ccb)
|
|||||||
ATA_DSM_BLK_RANGES);
|
ATA_DSM_BLK_RANGES);
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Disable queue sorting for non-rotatational media
|
* Disable queue sorting for non-rotational media
|
||||||
* by default
|
* by default.
|
||||||
*/
|
*/
|
||||||
if (ata_params->media_rotation_rate == 1)
|
if (ata_params->media_rotation_rate == 1)
|
||||||
softc->sort_io_queue = 0;
|
softc->sort_io_queue = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user