usched_bsd4 - fix incorrect use of PINTERLOCKED tsleep
authorAlex Hornung <alex@alexhornung.com>
Fri, 24 Aug 2012 06:44:43 +0000 (06:44 +0000)
committerAlex Hornung <alex@alexhornung.com>
Fri, 24 Aug 2012 06:44:43 +0000 (06:44 +0000)
 * The first tsleep in sched_thread has not been interlocked, so it is
   not valid to call tsleep(..., PINTERLOCKED, ...).

sys/kern/usched_bsd4.c

index af02b68..21ffcc4 100644 (file)
@@ -1731,7 +1731,7 @@ sched_thread(void *dummy)
      */
     lwkt_setpri_self(TDPRI_USER_SCHEDULER);
 
-    tsleep(&dd->helper_thread, PINTERLOCKED, "sched_thread_sleep", 0);
+    tsleep(&dd->helper_thread, 0, "sched_thread_sleep", 0);
 
     for (;;) {
 //again: