Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177834323
D55316.1795390999.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
514 B
Referenced Files
None
Subscribers
None
D55316.1795390999.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
@@ -2136,6 +2136,15 @@
n += witness_list_locks(&lock_list, printf);
} else
sched_unpin();
+
+ if (td->td_no_sleeping != 0 && (flags & WARN_SLEEPOK) != 0) {
+ va_start(ap, fmt);
+ vprintf(fmt, ap);
+ va_end(ap);
+ printf(" with %d sleep inhibitors\n", td->td_no_sleeping);
+ n += td->td_no_sleeping;
+ }
+
if (flags & WARN_PANIC && n)
kassert_panic("%s", __func__);
else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 11:43 PM (10 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41915335
Default Alt Text
D55316.1795390999.diff (514 B)
Attached To
Mode
D55316: witness: report a thread that can't sleep in WITNESS_WARN
Attached
Detach File
Event Timeline