svn commit: r368613 - head/sys/kern

Konstantin Belousov <[email protected]> Sun, 13 Dec 2020 19:45:43 +0000 (UTC)
Newsgroups gmane.os.freebsd.devel.cvs
Message-ID <202012131945.0BDJjhSY045415__48241.6011321888$1607888750$gmane$org@repo.freebsd.org>
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);
 	}
 
 	/*
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"