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:
parent
ce4dcb97ca
commit
aea9dba46b
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user