Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/netinet6 Pull up following revision(s) (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/9fa5c1fdb0c3
branches:  netbsd-9
changeset: 372117:9fa5c1fdb0c3
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Oct 27 16:06:24 2022 +0000

description:
Pull up following revision(s) (requested by ozaki-r in ticket #1548):

        sys/netinet6/frag6.c: revision 1.76

frag6: don't use spin mutex for frag6_lock

frag6_lock is held during sending a packet (icmp6_error), so we must
not use a spin mutex because we can acquire sleep locks on sending
a packet.

Also we don't need to use spin mutex for frag6_lock anymore because
frag6_lock is now not used from hardware interrupt context.

diffstat:

 sys/netinet6/frag6.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 921e841dbef3 -r 9fa5c1fdb0c3 sys/netinet6/frag6.c
--- a/sys/netinet6/frag6.c      Tue Oct 25 17:54:59 2022 +0000
+++ b/sys/netinet6/frag6.c      Thu Oct 27 16:06:24 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: frag6.c,v 1.74 2018/05/15 19:16:38 maxv Exp $  */
+/*     $NetBSD: frag6.c,v 1.74.6.1 2022/10/27 16:06:24 martin Exp $    */
 /*     $KAME: frag6.c,v 1.40 2002/05/27 21:40:31 itojun Exp $  */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: frag6.c,v 1.74 2018/05/15 19:16:38 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: frag6.c,v 1.74.6.1 2022/10/27 16:06:24 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -117,7 +117,7 @@
 {
 
        ip6q.ip6q_next = ip6q.ip6q_prev = &ip6q;
-       mutex_init(&frag6_lock, MUTEX_DEFAULT, IPL_NET);
+       mutex_init(&frag6_lock, MUTEX_DEFAULT, IPL_NONE);
 }
 
 /*



Home | Main Index | Thread Index | Old Index