From nobody Fri Jun 24 19:37:01 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 75A48864766; Fri, 24 Jun 2022 19:37:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LV6np23VFz4XW8; Fri, 24 Jun 2022 19:37:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656099422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=levtNXbkwbPt6lQXDbgqgJmM70kNA/M/CCoq1PRvOxs=; b=B4tOPgzmZU7hhSAA0YjyOEZYSApVTiR1CmxLVu4HDXbJhbzWwqcAKG6k0cl8XT/yfq6zZI juIynPCXqsA6XJFNk5oR6+gjavbW7Lmlo9VbG/5VCfRuZ2rM8a50ObemXZAZR07R/0ZH1i NKRYIwAHviik4gZzVjjW7Q3EEXS3ts7yaw14C0KFu5aKk39+C0STp+u2dW7+J+SQFVlZj7 9d+cd5+vNfQY0CyCczlkzD+tjzowpKfXYX1llMhcRZEDVHChfBTzHWqMjxuJrqU1JAFA0V aUSQ2qCC8bnYaTUyzXbm0RLv1fqzTdwDl1o047YTIMCV2ZGYZjTZ2NGHj4OS6A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DB795162FF; Fri, 24 Jun 2022 19:37:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25OJb1Nm084311; Fri, 24 Jun 2022 19:37:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25OJb1P7084310; Fri, 24 Jun 2022 19:37:01 GMT (envelope-from git) Date: Fri, 24 Jun 2022 19:37:01 GMT Message-Id: <202206241937.25OJb1P7084310@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: b66c1687213b - stable/13 - thread_single(): remove already checked conditional expression List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b66c1687213b877cfc3c3790fcd399c17b58c0c4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656099422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=levtNXbkwbPt6lQXDbgqgJmM70kNA/M/CCoq1PRvOxs=; b=h6SPThO32Sx63hw1R5iqSZq9PEUQc6pzkNa+f6FAfmAxsc1+amRweU8hrsJB535f6wa0MW oRP+2V1uF1/1Ufhgc7rwQy+wa1Ec24h2K8VjVObMJkt6jaQyUZ5Vu2hzOxpMvwXEpF48dV ngz84hWPDTj5JBNf0Yh0yaPQcoPyaQWPD3BsShWODojdDc0LfDYcpxLBS2OzWaKB37dwUa QzPS0rdAlerPPdsQplitYs9IevQuLbGK73akwU4lK7Tpwa7tnp0Uz6smuzjRvrzEwylmgt jGRrNbClJKx1BtQFHMg2BRm8/PdtHP9/Ivotrlp5ItAFC9oQxj5VKgTA7YyIFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656099422; a=rsa-sha256; cv=none; b=sPNc9xjAcfbRLKH1LA9EZrrJicDNgJeQME8CZw8MBeaeHzmqNDvrnAYCBgMk9EUD86mMAh bkOoBnweNaBsOt3nzySuYTSGeTavkxpZiFLLlavLQ9xBlFIyuXVsTWI1rKn9HNYGRsWa4s Iau7YKd+YQcGuEN7UuWrqbLs52n1jVLYpph+L32GIbqNmGB09A3UZrw+y7VKa6IdcyGTxB kJdhlM5KgIvXHmOPDK4rSpeY/jyaQoLpU7ZEZ72+jCgbi1Ct2MJCgNf+myiCOfb0tIqlV6 HcnTZK8iCXw4W4ZS61o6v88/Cy22odytpYMqaGpx+in4nXfQT4InP2svUzmBwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b66c1687213b877cfc3c3790fcd399c17b58c0c4 commit b66c1687213b877cfc3c3790fcd399c17b58c0c4 Author: Konstantin Belousov AuthorDate: 2022-05-12 11:47:40 +0000 Commit: Konstantin Belousov CommitDate: 2022-06-24 14:45:46 +0000 thread_single(): remove already checked conditional expression (cherry picked from commit b9009b1789b4641f5dbc9537eb0ca4759e22668e) --- sys/kern/kern_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index f55011fe9613..f10752cf682c 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1234,7 +1234,7 @@ thread_single(struct proc *p, int mode) if (TD_IS_INHIBITED(td2)) { wakeup_swapper |= weed_inhib(mode, td2, p); #ifdef SMP - } else if (TD_IS_RUNNING(td2) && td != td2) { + } else if (TD_IS_RUNNING(td2)) { forward_signal(td2); thread_unlock(td2); #endif