summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r--sys/kern/kern_lock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index fddfd26..5189bb7 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -259,6 +259,12 @@ debuglockmgr(lkp, flags, interlkp, td, name, file, line)
if (error)
break;
sharelock(lkp, 1);
+#if defined(DEBUG_LOCKS)
+ lkp->lk_slockholder = pid;
+ lkp->lk_sfilename = file;
+ lkp->lk_slineno = line;
+ lkp->lk_slockername = name;
+#endif
break;
}
/*
OpenPOWER on IntegriCloud