Module Name: src Committed By: riastradh Date: Sun Mar 13 21:32:15 UTC 2022
Modified Files: src/sys/net: if_tun.c Log Message: tun(4): Reduce tun_softc_lock from IPL_NET to IPL_NONE. This is always taken in process/thread context, never in interrupt context, hard or soft. To generate a diff of this commit: cvs rdiff -u -r1.166 -r1.167 src/sys/net/if_tun.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/net/if_tun.c diff -u src/sys/net/if_tun.c:1.166 src/sys/net/if_tun.c:1.167 --- src/sys/net/if_tun.c:1.166 Sun Mar 13 21:32:07 2022 +++ src/sys/net/if_tun.c Sun Mar 13 21:32:15 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: if_tun.c,v 1.166 2022/03/13 21:32:07 riastradh Exp $ */ +/* $NetBSD: if_tun.c,v 1.167 2022/03/13 21:32:15 riastradh Exp $ */ /* * Copyright (c) 1988, Julian Onions <j...@cs.nott.ac.uk> @@ -19,7 +19,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.166 2022/03/13 21:32:07 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.167 2022/03/13 21:32:15 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -130,7 +130,7 @@ static void tuninit(void) { - mutex_init(&tun_softc_lock, MUTEX_DEFAULT, IPL_NET); + mutex_init(&tun_softc_lock, MUTEX_DEFAULT, IPL_NONE); LIST_INIT(&tun_softc_list); LIST_INIT(&tunz_softc_list); if_clone_attach(&tun_cloner);