From nobody Thu Jul 14 19:48:18 2022 X-Original-To: dev-commits-src-all@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 4LkQ5b1CMHz4T16J; Thu, 14 Jul 2022 19:48:19 +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 4LkQ5b0RHBz3Pgq; Thu, 14 Jul 2022 19:48:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657828099; 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=ZCi7mqv89iwMMpXGmVJ8SpmBE7EomqM6WVCSwQfZX28=; b=IWvHrqyxe+u0fo95Vlls1uZ2IhnMQvyf4w42G42wUR2uf4ndLr5WGHrrrAZNGmXzj5EgIJ RVEXmssc1xPLepcfMXgCyrCkmV4Xkt76e6x1BFg84jZvZXVrbOK9MEsC5mlH9VqG7XImYU 4L84qcqw1LDKYrNnfpCZyFIa+DT6bgJ22jCaCFGzt77LRZxZLQWkOMTGdoeEWFS80XrdMA 6aj8hx3+z/+KtNCTC8y6wZqL3/YsenbIS5ta00c2Fpoz505letc3z8c4LPt6XqkTtVQ63P UqLQigYhgshOR+UkvZ0GdkrjfhIpg4lwl0tcw2aUBN1ej0Nba/FWK/zLcuLC6w== 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 4LkQ5Z6TG8zF1h; Thu, 14 Jul 2022 19:48:18 +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 26EJmIhB047697; Thu, 14 Jul 2022 19:48:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26EJmIBH047696; Thu, 14 Jul 2022 19:48:18 GMT (envelope-from git) Date: Thu, 14 Jul 2022 19:48:18 GMT Message-Id: <202207141948.26EJmIBH047696@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 6cbc4ceb7aa0 - main - sched_ule: Use the correct atomic_load variant for tdq_lowpri List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6cbc4ceb7aa0042e969be7c782436391c579cc3a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657828099; 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=ZCi7mqv89iwMMpXGmVJ8SpmBE7EomqM6WVCSwQfZX28=; b=EC0U9dPlBT8Q9KrooVdHRvYcoPep98CMkZhtwsmyidiQ1dWbrl8kxY6axFTSdiGfbDd+29 7JtwHOqEmzJSc3v+y0eP4CBncB92+fCjmjYF3PFAHCUlwP9JW0Um66XCtlTyTPJ12irwR+ oWdJjwT7dvoB0SzFF8SqsBIktgCGvkriYD25EW/KX4Ur5YwW1QnmaCjD4v2iQAHNwOTh4U AMStDci6MzWs0cy0I87H9fCZuAXPBCYf4SoRqwjSTeNkZtEn3KYrI+xMzRo9LHKV3dTDdk t/yvm+GFbw6g6DTGKIA39jCoSlE/OEXzZAX/j9o/PvglnwjFRtExxSAZi2DrDA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657828099; a=rsa-sha256; cv=none; b=cY37vIhRnNUFH11DfpxG1L8ZYhiZ4yzkClS0UcVw3kVl07u6mw7SV1rzW3j4K9IYSFmBWy wlncGIr3aztmzPbQiS8tMQXIDLWeY7MKT5OnXvVJdeZQskldcidzchxwVjWi/mnBXnog6N stQ4HgAjQM8W8kouh6RTJw3Sgayo8/K/eR6oBiOXg+BBxrSm6FwQNw7+dTuS7ZW3ZdZRI4 D1RgmwahQkvDTJ9xscMHZ5fleBtr8ig9nTe2TNgQ32K6Si0EHoBVlYr63B/43m8i795/Wz fvYP03xX0HanGMBsEmbKt2q9HkKDvWnu2ejwPKOYpAAsjdDsjFfT5A0isBLvbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=6cbc4ceb7aa0042e969be7c782436391c579cc3a commit 6cbc4ceb7aa0042e969be7c782436391c579cc3a Author: Mark Johnston AuthorDate: 2022-07-14 19:34:02 +0000 Commit: Mark Johnston CommitDate: 2022-07-14 19:34:02 +0000 sched_ule: Use the correct atomic_load variant for tdq_lowpri Reported by: tuexen Fixes: 11484ad8a2b0 ("sched_ule: Use explicit atomic accesses for tdq fields") --- sys/kern/sched_ule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index d23e43a2fbcb..14d6e689081d 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -1360,7 +1360,7 @@ sched_pickcpu(struct thread *td, int flags) * expired and it is idle, run it there. */ if (THREAD_CAN_SCHED(td, ts->ts_cpu) && - atomic_load_int(&tdq->tdq_lowpri) >= PRI_MIN_IDLE && + atomic_load_char(&tdq->tdq_lowpri) >= PRI_MIN_IDLE && SCHED_AFFINITY(ts, CG_SHARE_L2)) { if (cg->cg_flags & CG_FLAG_THREAD) { /* Check all SMT threads for being idle. */