Message ID | 20240208161014.1084943-2-longman@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58330-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp283112dyd; Thu, 8 Feb 2024 08:20:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOj5YmgNAmG2i72xZVY+2/wztIoWNZSqxJmSigLm7ygOXdrmwswQcxHcSbrGqmVOEEzjFp X-Received: by 2002:a05:6358:793:b0:175:cfa7:953d with SMTP id n19-20020a056358079300b00175cfa7953dmr7218483rwj.2.1707409214822; Thu, 08 Feb 2024 08:20:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707409214; cv=pass; d=google.com; s=arc-20160816; b=P5HBuYK7+k7QHXoq8N9MLboakWYXqlE68CW/YlL28uigXhLyyzuu2acKfU5fA7W8nM 5ECrP4hxJ56AYCC3DBqdQNDuiG4p99WnZ+qIXGwRVyP2GLPPRNTYLofyO7n9JSaElASS wJnb+MHAnqvFpQ0kWhb1VkS4oTMYzCZztZG3B2iv35v491Tf0yr/H1EUQTuZxNv8aB8f OG8mjt7bE1giPVKPsO3O8NKHeRpCblxuVGRozuljSaNIB6XYlgES66X+2l9dUSmAhWlj NW2YeeXAdcvskg7fN3R9CypxN8JkPE2qp2orgZM8G9vy92zaKJ/8LLSQfvbm1/wvzJXR 4hCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/Xu6Dy+LgyMX67Ta0NVKivdXcqKGVmjFkpKpX1QNbOE=; fh=5XA6lxJRtme9XZjOU29sOA5VGCyBxUCqfyNP4YrGPvg=; b=MGhVC/WBXegXJ34RSH1y62IZ5Ty4M2vgHqXPNOei1Rri1+/wVK53iyXZu91zWWKBQG kD0msp9PFoOGNkE7gkXt3JSwfdsXvFzqutUMueBVATHLfjunvl15SNV2AGq5vozpcuqo cohNBSu/bhnowIptDYENwnf1CSypZkAhgYefEvUEVc4GiaoLg4+pIGYB0qMmYXCysJWZ mDz1ZYeOxod58PbkvNSkGGnN7P+h2wMnGW3A2X/j0JvQVwMZLJN1NAlIRDBAtKsEeSEH 0YBmdMPaMIouAVDlKNS7e3y5WRA+siC3KYqR3CNVDOMweF6X4parzJ1opsu9V0KyM74T jUUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MTHnVcTX; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-58330-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58330-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=2; AJvYcCWl3SgZByR4UwbuGkwEuRvSV3v6Iqg+dYrQATQpV7EYmcbkZ/aZPciC9OGSTj87SmVc0C/MjAniXPkX8LfqxxTfwgWO+g== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o24-20020a637e58000000b005d8fdbbd5e8si3935966pgn.611.2024.02.08.08.20.14 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 08:20:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58330-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MTHnVcTX; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-58330-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58330-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3E420B25CB0 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 16:11:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FC727EF04; Thu, 8 Feb 2024 16:10:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="MTHnVcTX" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE82E7D413 for <linux-kernel@vger.kernel.org>; Thu, 8 Feb 2024 16:10:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707408633; cv=none; b=g4gdJt8e7GUffiIXlufjrU24bUbYQ6BTv4iMyK5W02mXOtS0dOlzk/XShDWqesOL55Ns61ubRn3D6XanoN/RvboeXCf6Rqre1yZ3Fg3wI1CQ2hIMAaXIFClttGiTjgozJKEN5knNyA6nA/vMnBh8voqa0h5uxFiJDhbHCQaqcWA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707408633; c=relaxed/simple; bh=jtcRfS7FK70oPiJGDW4/0HuF2nzmDdtB4If+8e4T7MQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RI16iIiXbxNG4YWZ/K2KtaiCFk1v5tcjMfm3WgJFN0xSgpXayuQakgC/NxK0tS5wvgkbZ5waTO2iMx4fTulDErDPe/XKxKo7oKAtpg+2Q6YrPv6ZwCWmjZOPRWffsI1bxIU85NSCwZTUyGZhFLCFJzDr/0ykzqFYR3gdi+TiPvI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=MTHnVcTX; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707408630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/Xu6Dy+LgyMX67Ta0NVKivdXcqKGVmjFkpKpX1QNbOE=; b=MTHnVcTXT//xsWX7usokCHK0FS4aLrXml0ki6SiEikeplu1opSBl1oD6YHy6Fs9AEHVgs+ F+X5uMSZbUVT57gXJZyeNwRVhoC102dV0Yos18Z1mBjh2XX7ZpSsaMzOoKEU6ZnwDaHTyE Qq44S2YnZJQ3k2/+6ppumrbwL/irdEM= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-1-3Fv6xqkQNByRzOKeLgBVHw-1; Thu, 08 Feb 2024 11:10:26 -0500 X-MC-Unique: 3Fv6xqkQNByRzOKeLgBVHw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EF068381644E; Thu, 8 Feb 2024 16:10:25 +0000 (UTC) Received: from llong.com (unknown [10.22.32.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7C130492BC8; Thu, 8 Feb 2024 16:10:25 +0000 (UTC) From: Waiman Long <longman@redhat.com> To: Tejun Heo <tj@kernel.org>, Lai Jiangshan <jiangshanlai@gmail.com> Cc: linux-kernel@vger.kernel.org, Juri Lelli <juri.lelli@redhat.com>, Cestmir Kalina <ckalina@redhat.com>, Alex Gladkov <agladkov@redhat.com>, Phil Auld <pauld@redhat.com>, Costa Shulyupin <cshulyup@redhat.com>, Waiman Long <longman@redhat.com> Subject: [PATCH wq/for-6.9 v5 1/4] workqueue: Link pwq's into wq->pwqs from oldest to newest Date: Thu, 8 Feb 2024 11:10:11 -0500 Message-Id: <20240208161014.1084943-2-longman@redhat.com> In-Reply-To: <20240208161014.1084943-1-longman@redhat.com> References: <20240208161014.1084943-1-longman@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790348324693483287 X-GMAIL-MSGID: 1790348324693483287 |
Series |
workqueue: Enable unbound cpumask update on ordered workqueues
|
|
Commit Message
Waiman Long
Feb. 8, 2024, 4:10 p.m. UTC
Add a new pwq into the tail of wq->pwqs so that pwq iteration will
start from the oldest pwq to the newest. This ordering will facilitate
the inclusion of ordered workqueues in a wq_unbound_cpumask update.
Signed-off-by: Waiman Long <longman@redhat.com>
---
kernel/workqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index cf514ba0dfc3..fa7bd3b34f52 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -4804,7 +4804,7 @@ static void link_pwq(struct pool_workqueue *pwq) pwq->work_color = wq->work_color; /* link in @pwq */ - list_add_rcu(&pwq->pwqs_node, &wq->pwqs); + list_add_tail_rcu(&pwq->pwqs_node, &wq->pwqs); } /* obtain a pool matching @attr and create a pwq associating the pool and @wq */