Remove incorrect owepreempt assertion added in r334062
Yet another preemption request hitting between the counter being 0 and the check being reached will result in the flag no longer being set. Note the situation was already present prior to r334062 and is harmless. Reported by: pho Reviewed by: kib
This commit is contained in:
parent
7445f60f4a
commit
e4785b15b2
@ -215,9 +215,13 @@ critical_exit_preempt(void)
|
||||
struct thread *td;
|
||||
int flags;
|
||||
|
||||
/*
|
||||
* If td_critnest is 0, it is possible that we are going to get
|
||||
* preempted again before reaching the code below. This happens
|
||||
* rarely and is harmless. However, this means td_owepreempt may
|
||||
* now be unset.
|
||||
*/
|
||||
td = curthread;
|
||||
KASSERT(td->td_owepreempt != 0,
|
||||
("critical_exit: td_owepreempt == 0"));
|
||||
if (td->td_critnest != 0)
|
||||
return;
|
||||
if (kdb_active)
|
||||
|
Loading…
Reference in New Issue
Block a user