PERFORCE change 58481 for review

John Baldwin jhb at FreeBSD.org
Thu Jul 29 13:06:17 PDT 2004


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

Change 58481 by jhb at jhb_slimer on 2004/07/29 20:05:53

	Hack around a deadlock due to an LOR for now on SMP at the cost
	of increasing latency of having a process swapped back in when one
	of its threads is made runnable.

Affected files ...

.. //depot/projects/smpng/sys/kern/kern_synch.c#76 edit

Differences ...

==== //depot/projects/smpng/sys/kern/kern_synch.c#76 (text+ko) ====

@@ -402,7 +402,9 @@
 	if ((p->p_sflag & PS_INMEM) == 0) {
 		if ((p->p_sflag & PS_SWAPPINGIN) == 0) {
 			p->p_sflag |= PS_SWAPINREQ;
+#ifndef SMP
 			wakeup(&proc0);
+#endif
 		}
 	} else
 		sched_wakeup(td);


More information about the p4-projects mailing list