svn commit: r272935 - head/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Sat Oct 11 07:49:28 UTC 2014


Author: mav
Date: Sat Oct 11 07:49:27 2014
New Revision: 272935
URL: https://svnweb.freebsd.org/changeset/base/272935

Log:
  Mark CTL frontend's CAM driver as CAM_PERIPH_DRV_EARLY.
  
  Target mode operation does not depend on the initiator mode scan process.
  This change allows the target driver to attach earlier and receive some
  async events (like AC_CONTRACT) that could be lost otherwise.
  
  MFC after:	1 week

Modified:
  head/sys/cam/ctl/scsi_ctl.c

Modified: head/sys/cam/ctl/scsi_ctl.c
==============================================================================
--- head/sys/cam/ctl/scsi_ctl.c	Sat Oct 11 06:22:57 2014	(r272934)
+++ head/sys/cam/ctl/scsi_ctl.c	Sat Oct 11 07:49:27 2014	(r272935)
@@ -224,7 +224,8 @@ static void 		ctlfe_dump(void);
 static struct periph_driver ctlfe_driver =
 {
 	ctlfeperiphinit, "ctl",
-	TAILQ_HEAD_INITIALIZER(ctlfe_driver.units), /*generation*/ 0
+	TAILQ_HEAD_INITIALIZER(ctlfe_driver.units), /*generation*/ 0,
+	CAM_PERIPH_DRV_EARLY
 };
 
 static struct ctl_frontend ctlfe_frontend =


More information about the svn-src-all mailing list