Date: Sun, 28 Apr 2013 21:14:23 +0000 (UTC) From: Steven Hartland <smh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250033 - in head/sys/cam: ata scsi Message-ID: <201304282114.r3SLEN1G074015@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304282114.r3SLEN1G074015>