Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Dec 2020 19:45:43 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r368613 - head/sys/kern
Message-ID:  <202012131945.0BDJjhSY045415@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012131945.0BDJjhSY045415>