svn commit: r368613 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Sun Dec 13 19:45:43 UTC 2020
Author: kib
Date: Sun Dec 13 19:45:42 2020
New Revision: 368613
URL: https://svnweb.freebsd.org/changeset/base/368613
Log:
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
Modified:
head/sys/kern/subr_sleepqueue.c
Modified: head/sys/kern/subr_sleepqueue.c
==============================================================================
--- head/sys/kern/subr_sleepqueue.c Sun Dec 13 19:43:45 2020 (r368612)
+++ head/sys/kern/subr_sleepqueue.c Sun Dec 13 19:45:42 2020 (r368613)
@@ -441,12 +441,10 @@ sleepq_check_ast_sc_locked(struct thread *td, struct s
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);
}
/*
More information about the svn-src-head
mailing list