From faee966c2e46cd6f2aa65aab6c2fb92c51bf3b63 Mon Sep 17 00:00:00 2001 From: Visa Hankala Date: Tue, 28 Nov 2017 16:22:28 +0000 Subject: Raise the IPL of the sbar taskq to avoid lock order issues with the kernel lock. Fixes a deadlock seen by Hrvoje Popovski and dhill@. OK mpi@, dhill@ --- sys/kern/kern_sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/kern_sched.c') diff --git a/sys/kern/kern_sched.c b/sys/kern/kern_sched.c index 50c86ec3b01..54705ee5019 100644 --- a/sys/kern/kern_sched.c +++ b/sys/kern/kern_sched.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sched.c,v 1.45 2017/02/12 04:55:08 guenther Exp $ */ +/* $OpenBSD: kern_sched.c,v 1.46 2017/11/28 16:22:27 visa Exp $ */ /* * Copyright (c) 2007, 2008 Artur Grabowski * @@ -228,7 +228,7 @@ void sched_init_runqueues(void) { #ifdef MULTIPROCESSOR - sbartq = taskq_create("sbar", 1, IPL_NONE, + sbartq = taskq_create("sbar", 1, IPL_VM, TASKQ_MPSAFE | TASKQ_CANTSLEEP); if (sbartq == NULL) panic("unable to create sbar taskq"); -- cgit v1.2.3