Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci viornd(4): Revert IPL change for lock.



details:   https://anonhg.NetBSD.org/src/rev/32020f46b329
branches:  trunk
changeset: 364377:32020f46b329
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Mar 19 16:20:45 2022 +0000

description:
viornd(4): Revert IPL change for lock.

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

diffstat:

 sys/dev/pci/viornd.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 2b3d5de94fcb -r 32020f46b329 sys/dev/pci/viornd.c
--- a/sys/dev/pci/viornd.c      Sat Mar 19 14:48:31 2022 +0000
+++ b/sys/dev/pci/viornd.c      Sat Mar 19 16:20:45 2022 +0000
@@ -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 @@
        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,



Home | Main Index | Thread Index | Old Index