svn commit: r355915 - head/sys/kern

Jeff Roberson jeff at FreeBSD.org
Thu Dec 19 18:22:12 UTC 2019


Author: jeff
Date: Thu Dec 19 18:22:11 2019
New Revision: 355915
URL: https://svnweb.freebsd.org/changeset/base/355915

Log:
  Fix a bug in r355784.  I missed a sched_add() call that needed to reacquire
  the thread lock.
  
  Reported by:	mjg

Modified:
  head/sys/kern/sched_ule.c

Modified: head/sys/kern/sched_ule.c
==============================================================================
--- head/sys/kern/sched_ule.c	Thu Dec 19 17:01:25 2019	(r355914)
+++ head/sys/kern/sched_ule.c	Thu Dec 19 18:22:11 2019	(r355915)
@@ -2689,7 +2689,7 @@ sched_affinity(struct thread *td)
 		return;
 	if (TD_ON_RUNQ(td)) {
 		sched_rem(td);
-		sched_add(td, SRQ_BORING);
+		sched_add(td, SRQ_BORING | SRQ_HOLDTD);
 		return;
 	}
 	if (!TD_IS_RUNNING(td))


More information about the svn-src-all mailing list