Make sched_barrier() use its own task queue to avoid deadlocks.
authormpi <mpi@openbsd.org>
Fri, 16 Oct 2015 19:07:24 +0000 (19:07 +0000)
committermpi <mpi@openbsd.org>
Fri, 16 Oct 2015 19:07:24 +0000 (19:07 +0000)
commitfc08c3564c7be825f49b082f30a8fd948834bd03
tree38c92c9329870faa0d4fd939234878e9c6bc5f9e
parent5c914b40256c4afa1601c1f519bce0a7031268eb
Make sched_barrier() use its own task queue to avoid deadlocks.

Prevent a deadlock from occuring when intr_barrier() is called from
a non-primary CPU in the watchdog task, also enqueued on ``systq''.

ok kettenis@
sys/kern/kern_sched.c