taskq - Fix SMP panic due to incorrect lwkt_setpri() call.
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 2 Oct 2009 18:05:39 +0000 (11:05 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 2 Oct 2009 18:05:39 +0000 (11:05 -0700)
sys/kern/subr_taskqueue.c

index e160730..8dda83a 100644 (file)
@@ -346,7 +346,7 @@ taskqueue_start_threads(struct taskqueue **tqp, int count, int pri, int ncpu,
                        tq->tq_threads[i] = NULL;
                } else {
                        td = tq->tq_threads[i];
-                       lwkt_setpri(td, pri);
+                       lwkt_setpri_initial(td, pri);
                        lwkt_schedule(td);
                        tq->tq_tcount++;
                }