mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Remove remnants of the recursive sleep support. Instead assert that
we never try to sleep while the thread is on a sleepqueue. Reviewed by: jhb Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D8422
This commit is contained in:
parent
d8aeed01eb
commit
75409ce1dd
1 changed files with 1 additions and 7 deletions
|
|
@ -170,13 +170,7 @@ _sleep(void *ident, struct lock_object *lock, int priority,
|
|||
catch = priority & PCATCH;
|
||||
pri = priority & PRIMASK;
|
||||
|
||||
/*
|
||||
* If we are already on a sleep queue, then remove us from that
|
||||
* sleep queue first. We have to do this to handle recursive
|
||||
* sleeps.
|
||||
*/
|
||||
if (TD_ON_SLEEPQ(td))
|
||||
sleepq_remove(td, td->td_wchan);
|
||||
KASSERT(!TD_ON_SLEEPQ(td), ("recursive sleep"));
|
||||
|
||||
if ((uint8_t *)ident >= &pause_wchan[0] &&
|
||||
(uint8_t *)ident <= &pause_wchan[MAXCPU - 1])
|
||||
|
|
|
|||
Loading…
Reference in a new issue