PERFORCE change 119776 for review

Matt Jacob mjacob at FreeBSD.org
Sun May 13 17:43:42 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=119776

Change 119776 by mjacob at mjexp on 2007/05/13 17:43:07

	Temp workaround config_intrhook_establish running the hook right away.

Affected files ...

.. //depot/projects/mjexp/sys/dev/isp/isp_freebsd.c#26 edit

Differences ...

==== //depot/projects/mjexp/sys/dev/isp/isp_freebsd.c#26 (text+ko) ====

@@ -146,12 +146,15 @@
 
 	isp->isp_osinfo.ehook.ich_func = isp_intr_enable;
 	isp->isp_osinfo.ehook.ich_arg = isp;
+	ISP_UNLOCK(isp);
 	if (config_intrhook_establish(&isp->isp_osinfo.ehook) != 0) {
+		ISP_LOCK(isp);
 		cam_sim_free(sim, TRUE);
 		isp_prt(isp, ISP_LOGERR,
 		    "could not establish interrupt enable hook");
 		return;
 	}
+	ISP_LOCK(isp);
 
 	if (xpt_bus_register(sim, primary) != CAM_SUCCESS) {
 		cam_sim_free(sim, TRUE);


More information about the p4-projects mailing list