Tweak the commit message in case of panic for sleeping from threads
with TDP_NOSLEEPING on. The current message has no informations on the thread and wchan involed, which may be useful in case where dumps have mangled dwarf informations. Reported by: kib Reviewed by: bde, jhb, kib MFC after: 1 week
This commit is contained in:
parent
4170b08388
commit
faa1082aa2
@ -297,7 +297,8 @@ sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg, int flags,
|
||||
|
||||
/* If this thread is not allowed to sleep, die a horrible death. */
|
||||
KASSERT(!(td->td_pflags & TDP_NOSLEEPING),
|
||||
("Trying sleep, but thread marked as sleeping prohibited"));
|
||||
("%s: td %p to sleep on wchan %p with TDP_NOSLEEPING on",
|
||||
__func__, td, wchan));
|
||||
|
||||
/* Look up the sleep queue associated with the wait channel 'wchan'. */
|
||||
sq = sleepq_lookup(wchan);
|
||||
|
Loading…
x
Reference in New Issue
Block a user