1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00

turnstile: Mention the lock name when panicking due to a sleeping thread

This will hopefully make it a bit easier to track down the cause of such
panics.

MFC after:	2 weeks
This commit is contained in:
Mark Johnston 2024-08-10 15:42:35 +00:00
parent ce4dcb97ca
commit aea9dba46b

View File

@ -246,7 +246,8 @@ propagate_priority(struct thread *td)
"Sleeping thread (tid %d, pid %d) owns a non-sleepable lock\n",
td->td_tid, td->td_proc->p_pid);
kdb_backtrace_thread(td);
panic("sleeping thread");
panic("sleeping thread holds %s",
ts->ts_lockobj->lo_name);
}
/*