Author: mckusick
Date: Thu Apr  9 23:42:13 2020
New Revision: 359759
URL: https://svnweb.freebsd.org/changeset/base/359759

Log:
  When running with a kernel compiled with DEBUG_LOCKS, before
  panic'ing for recusing on a non-recursive lock, print out the
  kernel stack where the lock was originally acquired.

Modified:
  head/sys/kern/kern_lock.c

Modified: head/sys/kern/kern_lock.c
==============================================================================
--- head/sys/kern/kern_lock.c   Thu Apr  9 23:22:35 2020        (r359758)
+++ head/sys/kern/kern_lock.c   Thu Apr  9 23:42:13 2020        (r359759)
@@ -732,6 +732,7 @@ lockmgr_xlock_hard(struct lock *lk, u_int flags, struc
                                class = LOCK_CLASS(ilk);
                                class->lc_unlock(ilk);
                        }
+                       STACK_PRINT(lk);
                        panic("%s: recursing on non recursive lockmgr %p "
                            "@ %s:%d\n", __func__, lk, file, line);
                }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to