svn commit: r222925 - stable/8/sys/cam/scsi

Alexander Motin mav at FreeBSD.org
Fri Jun 10 09:58:49 UTC 2011


Author: mav
Date: Fri Jun 10 09:58:48 2011
New Revision: 222925
URL: http://svn.freebsd.org/changeset/base/222925

Log:
  MFC r220690 (by jh):
  Move a comment to the right place. The rearrange done in r208928 left
  the comment to a wrong place.

Modified:
  stable/8/sys/cam/scsi/scsi_da.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/cam/scsi/scsi_da.c
==============================================================================
--- stable/8/sys/cam/scsi/scsi_da.c	Fri Jun 10 09:57:48 2011	(r222924)
+++ stable/8/sys/cam/scsi/scsi_da.c	Fri Jun 10 09:58:48 2011	(r222925)
@@ -1205,10 +1205,6 @@ daregister(struct cam_periph *periph, vo
 	TASK_INIT(&softc->sysctl_task, 0, dasysctlinit, periph);
 
 	/*
-	 * Register this media as a disk
-	 */
-
-	/*
 	 * Add async callbacks for bus reset and
 	 * bus device reset calls.  I don't bother
 	 * checking if this fails as, in most cases,
@@ -1265,6 +1261,9 @@ daregister(struct cam_periph *periph, vo
 	else if (softc->minimum_cmd_size > 12)
 		softc->minimum_cmd_size = 16;
 
+	/*
+	 * Register this media as a disk.
+	 */
 	softc->disk = disk_alloc();
 	softc->disk->d_devstat = devstat_new_entry(periph->periph_name,
 			  periph->unit_number, 0,


More information about the svn-src-stable mailing list