Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/ipf/netinet Comment out the mutex calls tha...



details:   https://anonhg.NetBSD.org/src/rev/1bbe7ce940f4
branches:  trunk
changeset: 344537:1bbe7ce940f4
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 03 15:52:37 2016 +0000

description:
Comment out the mutex calls that protect against concurrent configuration
changes and processing. This needs to be done differently since you can't
sleep during interrupt processing.

diffstat:

 sys/external/bsd/ipf/netinet/fil.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (51 lines):

diff -r d451dc818227 -r 1bbe7ce940f4 sys/external/bsd/ipf/netinet/fil.c
--- a/sys/external/bsd/ipf/netinet/fil.c        Sun Apr 03 14:41:30 2016 +0000
+++ b/sys/external/bsd/ipf/netinet/fil.c        Sun Apr 03 15:52:37 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fil.c,v 1.16 2015/04/02 00:12:58 khorben Exp $ */
+/*     $NetBSD: fil.c,v 1.17 2016/04/03 15:52:37 christos Exp $        */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -138,7 +138,7 @@
 #if !defined(lint)
 #if defined(__NetBSD__)
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.16 2015/04/02 00:12:58 khorben Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.17 2016/04/03 15:52:37 christos Exp $");
 #else
 static const char sccsid[] = "@(#)fil.c        1.36 6/5/96 (C) 1993-2000 Darren Reed";
 static const char rcsid[] = "@(#)Id: fil.c,v 1.1.1.2 2012/07/22 13:45:07 darrenr Exp $";
@@ -2916,7 +2916,9 @@
                LBUMPD(ipf_stats[out], fr_short);
        }
 
+#if 0
        READ_ENTER(&softc->ipf_mutex);
+#endif
 
        if (!out) {
                switch (fin->fin_v)
@@ -3048,9 +3050,10 @@
                fr->fr_ref++;
                MUTEX_EXIT(&fr->fr_lock);
        }
-
+#if 0
        RWLOCK_EXIT(&softc->ipf_mutex);
 #endif
+#endif
 
        if ((pass & FR_RETMASK) != 0) {
                /*
@@ -3146,8 +3149,10 @@
 #endif
        }
 #if !defined(FASTROUTE_RECURSION)
+#if 0
        RWLOCK_EXIT(&softc->ipf_mutex);
 #endif
+#endif
 
 finished:
        if (!FR_ISPASS(pass)) {



Home | Main Index | Thread Index | Old Index