Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Nov 2004 02:15:55 GMT
From:      David Xu <davidxu@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 65487 for review
Message-ID:  <200411200215.iAK2FtOF099214@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=65487

Change 65487 by davidxu@davidxu_alona on 2004/11/20 02:15:39

	wakeup_one is an evil. it may wake wrong thread.

Affected files ...

.. //depot/projects/davidxu_thread/src/sys/kern/kern_thr.c#2 edit

Differences ...

==== //depot/projects/davidxu_thread/src/sys/kern/kern_thr.c#2 (text+ko) ====

@@ -295,7 +295,7 @@
 	mtx_lock_spin(&sched_lock);
 	ttd->td_flags |= TDF_THRWAKEUP;
 	mtx_unlock_spin(&sched_lock);
-	wakeup_one((void *)ttd);
+	wakeup((void *)ttd);
 	PROC_UNLOCK(td->td_proc);
 	return (0);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411200215.iAK2FtOF099214>