PERFORCE change 64073 for review

Peter Wemm peter at FreeBSD.org
Mon Nov 1 15:26:26 PST 2004


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

Change 64073 by peter at peter_daintree on 2004/11/01 23:26:03

	whoops. need sched_lock around this.

Affected files ...

.. //depot/projects/hammer/sys/kern/kern_shutdown.c#29 edit

Differences ...

==== //depot/projects/hammer/sys/kern/kern_shutdown.c#29 (text+ko) ====

@@ -248,7 +248,9 @@
 	static int first_buf_printf = 1;
 
 	/* Do all shutdown processing on cpu0 */
+	mtx_lock_spin(&sched_lock);
 	sched_bind(curthread, 0);
+	mtx_unlock_spin(&sched_lock);
 
 	/* collect extra flags that shutdown_nice might have set */
 	howto |= shutdown_howto;


More information about the p4-projects mailing list