Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163271501
D52496.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
917 B
Referenced Files
None
Subscribers
None
D52496.id.diff
View Options
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -1515,6 +1515,10 @@
else
lock_list = PCPU_PTR(spinlocks);
+ /* Update per-witness last file and line acquire. */
+ w->w_file = file;
+ w->w_line = line;
+
/* Check to see if we are recursing on a lock we already own. */
instance = find_instance(*lock_list, lock);
if (instance != NULL) {
@@ -1522,15 +1526,9 @@
CTR4(KTR_WITNESS, "%s: pid %d recursed on %s r=%d", __func__,
td->td_proc->p_pid, lock->lo_name,
instance->li_flags & LI_RECURSEMASK);
- instance->li_file = file;
- instance->li_line = line;
return;
}
- /* Update per-witness last file and line acquire. */
- w->w_file = file;
- w->w_line = line;
-
/* Find the next open lock instance in the list and fill it. */
lle = *lock_list;
if (lle == NULL || lle->ll_count == LOCK_NCHILDREN) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 3:18 PM (1 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35369150
Default Alt Text
D52496.id.diff (917 B)
Attached To
Mode
D52496: witness: Record the first acquired file and line for recursable locks
Attached
Detach File
Event Timeline
Log In to Comment