svn commit: r250033 - in head/sys/cam: ata scsi

Steven Hartland smh at FreeBSD.org
Sun Apr 28 21:14:23 UTC 2013


Author: smh
Date: Sun Apr 28 21:14:23 2013
New Revision: 250033
URL: http://svnweb.freebsd.org/changeset/base/250033

Log:
  Correct comment typo's
  Add missing comment
  
  Reviewed by:	pjd (mentor)
  Approved by:	pjd (mentor)
  MFC after:	2 weeks

Modified:
  head/sys/cam/ata/ata_da.c
  head/sys/cam/scsi/scsi_da.c

Modified: head/sys/cam/ata/ata_da.c
==============================================================================
--- head/sys/cam/ata/ata_da.c	Sun Apr 28 20:55:45 2013	(r250032)
+++ head/sys/cam/ata/ata_da.c	Sun Apr 28 21:14:23 2013	(r250033)
@@ -1147,7 +1147,7 @@ adaregister(struct cam_periph *periph, v
 	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

Modified: head/sys/cam/scsi/scsi_da.c
==============================================================================
--- head/sys/cam/scsi/scsi_da.c	Sun Apr 28 20:55:45 2013	(r250032)
+++ head/sys/cam/scsi/scsi_da.c	Sun Apr 28 21:14:23 2013	(r250033)
@@ -3058,6 +3058,10 @@ dadone(struct cam_periph *periph, union 
 		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 
 					  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;


More information about the svn-src-all mailing list