Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net tun(4): Reduce tun_softc_lock from IPL_NET to IPL_NONE.
details: https://anonhg.NetBSD.org/src/rev/4b075baef940
branches: trunk
changeset: 363498:4b075baef940
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Mar 13 21:32:15 2022 +0000
description:
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.
diffstat:
sys/net/if_tun.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r dd3aa666f3f7 -r 4b075baef940 sys/net/if_tun.c
--- a/sys/net/if_tun.c Sun Mar 13 21:32:07 2022 +0000
+++ b/sys/net/if_tun.c Sun Mar 13 21:32:15 2022 +0000
@@ -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 <jpo%cs.nott.ac.uk@localhost>
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index