PERFORCE change 103178 for review

Paolo Pisati piso at FreeBSD.org
Fri Aug 4 16:23:54 UTC 2006


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

Change 103178 by piso at piso_newluxor on 2006/08/04 16:23:44

	Avoid deadlock: during taskqueue_free() some of the predefined
	tasks could be executed, so watch out not to do it
	while holding a lock that one of these tasks could 
	try to acquire.

Affected files ...

.. //depot/projects/soc2006/intr_filter/dev/bfe/if_bfe.c#7 edit

Differences ...

==== //depot/projects/soc2006/intr_filter/dev/bfe/if_bfe.c#7 (text+ko) ====

@@ -475,8 +475,8 @@
 		device_delete_child(dev, sc->bfe_miibus);
 
 	bfe_release_resources(sc);
+	BFE_UNLOCK(sc);
 	taskqueue_free(sc->sc_tq);
-	BFE_UNLOCK(sc);
 	mtx_destroy(&sc->bfe_mtx);
 
 	return (0);


More information about the p4-projects mailing list