Source-Changes-HG archive

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

[src/trunk]: src/sys/kern softint_dispatch(): Temporarily call kernel_lock_pl...



details:   https://anonhg.NetBSD.org/src/rev/a74ff5e3d87d
branches:  trunk
changeset: 744925:a74ff5e3d87d
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Feb 17 21:44:42 2020 +0000

description:
softint_dispatch(): Temporarily call kernel_lock_plug_leak() since there is
incontinent code somewhere.

diffstat:

 sys/kern/kern_softint.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r a55b84cfa7aa -r a74ff5e3d87d sys/kern/kern_softint.c
--- a/sys/kern/kern_softint.c   Mon Feb 17 17:16:51 2020 +0000
+++ b/sys/kern/kern_softint.c   Mon Feb 17 21:44:42 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_softint.c,v 1.60 2020/02/15 18:12:15 ad Exp $     */
+/*     $NetBSD: kern_softint.c,v 1.61 2020/02/17 21:44:42 ad Exp $     */
 
 /*-
  * Copyright (c) 2007, 2008, 2019, 2020 The NetBSD Foundation, Inc.
@@ -170,12 +170,13 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.60 2020/02/15 18:12:15 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.61 2020/02/17 21:44:42 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
 #include <sys/intr.h>
 #include <sys/ipi.h>
+#include <sys/lock.h>
 #include <sys/mutex.h>
 #include <sys/kernel.h>
 #include <sys/kthread.h>
@@ -889,6 +890,9 @@
                l->l_pflag &= ~LP_TIMEINTR;
        }
 
+       /* XXX temporary */
+       kernel_lock_plug_leak();
+
        /*
         * If we blocked while handling the interrupt, the pinned LWP is
         * gone so switch to the idle LWP.  It will select a new LWP to



Home | Main Index | Thread Index | Old Index