Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Fix inverted condition in r1.136 - we do want LOCKD...



details:   https://anonhg.NetBSD.org/src/rev/b35eab433098
branches:  trunk
changeset: 932197:b35eab433098
user:      martin <martin%NetBSD.org@localhost>
date:      Sat May 02 09:13:40 2020 +0000

description:
Fix inverted condition in r1.136 - we do want LOCKDEBUG spinouts of the
kernel lock to assert as soon as we have userland running - not in
the early boot phase (where firmware loading and device init could take
a long time).

diffstat:

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

diffs (27 lines):

diff -r 0b3ee61f7324 -r b35eab433098 sys/kern/kern_lock.c
--- a/sys/kern/kern_lock.c      Sat May 02 06:45:53 2020 +0000
+++ b/sys/kern/kern_lock.c      Sat May 02 09:13:40 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_lock.c,v 1.170 2020/03/08 15:05:18 ad Exp $       */
+/*     $NetBSD: kern_lock.c,v 1.171 2020/05/02 09:13:40 martin Exp $   */
 
 /*-
  * Copyright (c) 2002, 2006, 2007, 2008, 2009, 2020 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.170 2020/03/08 15:05:18 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.171 2020/05/02 09:13:40 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_lockdebug.h"
@@ -240,7 +240,7 @@
 #ifdef LOCKDEBUG
                        if (SPINLOCK_SPINOUT(spins)) {
                                extern int start_init_exec;
-                               if (!start_init_exec)
+                               if (start_init_exec)
                                        _KERNEL_LOCK_ABORT("spinout");
                        }
                        SPINLOCK_BACKOFF_HOOK;



Home | Main Index | Thread Index | Old Index