Fix TDP_WAKEUP/thr_wake(curthread->td_tid) after r366428.

Reported by:	arichardson
Reviewed by:	arichardson, markj
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D27597
This commit is contained in:
Konstantin Belousov 2020-12-13 19:45:42 +00:00
parent 0b459854bc
commit 203affb291
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=368613

View File

@ -441,12 +441,10 @@ sleepq_check_ast_sc_locked(struct thread *td, struct sleepqueue_chain *sc)
mtx_assert(&sc->sc_lock, MA_OWNED);
ret = 0;
if ((td->td_pflags & TDP_WAKEUP) != 0) {
td->td_pflags &= ~TDP_WAKEUP;
ret = EINTR;
thread_lock(td);
return (0);
return (EINTR);
}
/*