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:
Mateusz Guzik 2018-05-23 10:13:17 +00:00
parent 695a3b29ff
commit 6fee84e35e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334087

View File

@ -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)