Complete MFC of rev. 1.215:

Fix a LOR between sched_lock and sleep queue lock.

Approved by:	re (scottl)
This commit is contained in:
delphij 2005-10-06 18:24:24 +00:00
parent 2602cc468e
commit 64168ac065

View File

@ -707,8 +707,8 @@ kse_create(struct thread *td, struct kse_create_args *uap)
* Make the new upcall available to the ksegrp.
* It may or may not use it, but it's available.
*/
PROC_UNLOCK(p);
upcall_link(newku, newkg);
PROC_UNLOCK(p);
if (mbx.km_quantum)
newkg->kg_upquantum = max(1, mbx.km_quantum / tick);