Message ID | 20240207011911.975608-2-longman@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-55791-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1930870dyb; Tue, 6 Feb 2024 17:20:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOF00YRaGijTPJqs7dVMZvQfNP7Q0r6M4ewcrq5CPp7MF+szSZesHmq7p8aIu/MFWbt9TQ X-Received: by 2002:a17:903:24c:b0:1d9:63e2:680a with SMTP id j12-20020a170903024c00b001d963e2680amr4022693plh.24.1707268828468; Tue, 06 Feb 2024 17:20:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707268828; cv=pass; d=google.com; s=arc-20160816; b=J8lquErnroasPlZgm37VtvHvYnS2t7ZTFmqpK2rMTDaQoZLBYBJeccn4PauH6EhDS0 Rcl7Mr6hYm40b8BU+lWKq2T3JXy5Z8j/9a2YMd4mpY4tJRLUPJ2UnCwBNeSfiL0k6ZC0 kJh6Vh3/LrEzw5SueqPdOWoqNKNIX/hUgwvW/aMd5nkgOm88a817ro7yQ0PBupeqcSRl iVzuV2+5Xnkhpq33JWudacNB2MMyJBKMC0hBdnGkK6hwArYtmbyz8AKqqqwazUprfcI4 YZgiOP70KuRS6ivufLPOE7pmEvXT7HJSFlgj9GiObdZLdVBQfubNJxBFnuLmkB96m7D1 gITg== 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=1dxJLh+QIs55LKZJQ7J+dy07UPlexyaEvM3cDuCfT94=; b=iQggo+Cnb9gNdpTe+FhrGIozraPWA8d/fB2Da2PoJ8vjLh9QEpTcgRCf3GPYChjAih Ew7ChHxgZdDslSXb4t1+6O2c4TuiJRunqgonAfNPOaNvgIc+Yzcu7+MIZIpb7ojDuOEu /4935+Ll6YibPdWe+FeSx2Fq63P+W3ti+wd+dhfqT9E5IoKMYKJoALxgy9lJzqvmSvvd LvER36xrdTw9yUVj+9MI6jMALrAnDxOscxl2PdlJswMwLiD7afXMi1bGDhxvlinvaD/E xLAncPJNWCQDd8y+vE53ReHzgSs+0l5WBq+sk5IIuZJ6TYhFBJbYrYMxRYfOAzS3bUMO V0JQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EPKf5oQF; 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-55791-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55791-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=2; AJvYcCWO5PJnUq+EEH/BeLOFCgUT1fOYcyDgK23inkFZWS/ETWrjtpnD+6rXijFszWmkqZr4iUzknfRL3nJ0vedJXOMgk7vBYQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c20-20020a170902c1d400b001d78f9081a9si288458plc.313.2024.02.06.17.20.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 17:20:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55791-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EPKf5oQF; 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-55791-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55791-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0DEAF282D20 for <ouuuleilei@gmail.com>; Wed, 7 Feb 2024 01:20:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AA3C1B942; Wed, 7 Feb 2024 01:19:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EPKf5oQF" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 6962612E7E for <linux-kernel@vger.kernel.org>; Wed, 7 Feb 2024 01:19:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707268777; cv=none; b=GBcZvNIP+kk2iBIH2b6YKdshsJeJLxNrb/InxxQyi4fvR/3C+E3tb4Lm9V2sCsdt735F9VRq1ikZTmkqqtKugHlDVSpfXK0GgcPGFBzUH5kpv1zCASrfqTtEZYGc9lFz8Wuuyj4PV34VATOSi1IjWmMyr+e98cDF1Do52yy+fGE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707268777; c=relaxed/simple; bh=jtcRfS7FK70oPiJGDW4/0HuF2nzmDdtB4If+8e4T7MQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=d+aH4J7wYVi9SSuHAs4n0qTaY/GrL1cEUTfQ3G2DTEgPI4g19iEtmpuSJhHLMblK3yJDDnd2qXqKzof3KWuoM5Zk9qB2TtyP8l2W3EVqLAqAk0ChfHqM2b0BdyA2CK2nauQXOj8zSWKQ2ZpJqfc/EZIF94VgRXs7GxGL4nA9Tkw= 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=EPKf5oQF; arc=none smtp.client-ip=170.10.133.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=1707268774; 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=EPKf5oQFaXlRfqe7kyJfqDpWchYQNpBsKGIagmPmKHukQ2DxYp2hjz7LLUDmS3HQaWEhwf hyKvcORWhIRWM+pH2dqljEkkPbdWeUmSwmGkk10ppo3viu5IoLkxh/Bl669RUDv5bp5EEA v+x6U9AgCiF+792v8ynnCZsrJTiaNAs= 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-624-v9z3RzMnM_qw_2dRQMJXGA-1; Tue, 06 Feb 2024 20:19:33 -0500 X-MC-Unique: v9z3RzMnM_qw_2dRQMJXGA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (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 AAC7A3816449; Wed, 7 Feb 2024 01:19:32 +0000 (UTC) Received: from llong.com (unknown [10.22.16.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2F50240D1B62; Wed, 7 Feb 2024 01:19:32 +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 v4 1/4] workqueue: Link pwq's into wq->pwqs from oldest to newest Date: Tue, 6 Feb 2024 20:19:08 -0500 Message-Id: <20240207011911.975608-2-longman@redhat.com> In-Reply-To: <20240207011911.975608-1-longman@redhat.com> References: <20240207011911.975608-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.2 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790201119099541277 X-GMAIL-MSGID: 1790201119099541277 |
Series |
workqueue: Enable unbound cpumask update on ordered workqueues
|
|
Commit Message
Waiman Long
Feb. 7, 2024, 1:19 a.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 */