Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2002 06:14:49 -0700 (PDT)
From:      Jonathan Mini <mini@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 16261 for review
Message-ID:  <200208191314.g7JDEnV2032834@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=16261

Change 16261 by mini@mini_stylus on 2002/08/19 06:14:31

	Hold the sched_lock like we're supposed to.

Affected files ...

.. //depot/projects/kse/bin/miniuts/Makefile#1 add
.. //depot/projects/kse/sys/kern/kern_thread.c#89 edit

Differences ...

==== //depot/projects/kse/sys/kern/kern_thread.c#89 (text+ko) ====

@@ -851,6 +851,8 @@
 	PROC_LOCK_ASSERT(p, MA_OWNED);
 	p->p_flag &= ~P_STOPPED_SNGL;
 	p->p_singlethread = NULL;
+	mtx_lock_spin(&sched_lock);
 	thread_unsuspend(p);
+	mtx_unlock_spin(&sched_lock);
 }
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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