Module Name:    src
Committed By:   riastradh
Date:           Sat Mar 19 16:20:45 UTC 2022

Modified Files:
        src/sys/dev/pci: viornd.c

Log Message:
viornd(4): Revert IPL change for lock.

This lock is taken in hard interrupt context, so it needs to remain
at IPL_VM.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/pci/viornd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/viornd.c
diff -u src/sys/dev/pci/viornd.c:1.15 src/sys/dev/pci/viornd.c:1.16
--- src/sys/dev/pci/viornd.c:1.15	Sat Mar 19 11:37:06 2022
+++ src/sys/dev/pci/viornd.c	Sat Mar 19 16:20:45 2022
@@ -1,4 +1,4 @@
-/* 	$NetBSD: viornd.c,v 1.15 2022/03/19 11:37:06 riastradh Exp $ */
+/* 	$NetBSD: viornd.c,v 1.16 2022/03/19 16:20:45 riastradh Exp $ */
 /*	$OpenBSD: viornd.c,v 1.1 2014/01/21 21:14:58 sf Exp $	*/
 
 /*
@@ -139,7 +139,7 @@ viornd_attach(device_t parent, device_t 
 	sc->sc_dev = self;
 	sc->sc_virtio = vsc;
 
-	mutex_init(&sc->sc_mutex, MUTEX_DEFAULT, IPL_SOFTSERIAL);
+	mutex_init(&sc->sc_mutex, MUTEX_DEFAULT, IPL_VM);
 
 	error = bus_dmamem_alloc(virtio_dmat(vsc),
 				 VIRTIO_PAGE_SIZE, 0, 0, segs, 1, &nsegs,

Reply via email to