Source-Changes-HG archive

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

[src/trunk]: src/sys/kern in ltsleep(), assert that the interlock is held (if...



details:   https://anonhg.NetBSD.org/src/rev/4b6c10d26bcd
branches:  trunk
changeset: 515438:4b6c10d26bcd
user:      chs <chs%NetBSD.org@localhost>
date:      Tue Sep 25 01:38:38 2001 +0000

description:
in ltsleep(), assert that the interlock is held (if one is given).

diffstat:

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

diffs (17 lines):

diff -r dc9d423d3f7d -r 4b6c10d26bcd sys/kern/kern_synch.c
--- a/sys/kern/kern_synch.c     Tue Sep 25 01:07:53 2001 +0000
+++ b/sys/kern/kern_synch.c     Tue Sep 25 01:38:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_synch.c,v 1.104 2001/05/28 22:20:03 chs Exp $     */
+/*     $NetBSD: kern_synch.c,v 1.105 2001/09/25 01:38:38 chs Exp $     */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -390,6 +390,7 @@
        }
 
        KASSERT(p != NULL);
+       LOCK_ASSERT(interlock == NULL || simple_lock_held(interlock));
 
 #ifdef KTRACE
        if (KTRPOINT(p, KTR_CSW))



Home | Main Index | Thread Index | Old Index