Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1936129rdb; Wed, 31 Jan 2024 13:57:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrnC+E5TSIWPe7rgYaqrms2t6RvkKLrGbFVA0V37Dfir6H3X+k2+uWTfL1mc3hF6ieG0Sa X-Received: by 2002:a2e:be89:0:b0:2cc:c794:57c7 with SMTP id a9-20020a2ebe89000000b002ccc79457c7mr190568ljr.43.1706738221002; Wed, 31 Jan 2024 13:57:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706738220; cv=pass; d=google.com; s=arc-20160816; b=wIAGPmKdKFeqEJls2t2uJGamL4IlhN1EauNxi+jo0HUIy8jjE8iPOO5P4Xaw/gK85/ gpxE9zuGYoLkFhtTvytuLbWCKvyH4RbK7KknaHQL/4AZvCHv2WkvoQSmFIxX+ZdCeFUZ AVqao+xotCvckKl2M69emnvHFyYMf+/+ehBeFbTJubWGy6BZJu46VMxXHhXzIC7jNRPy A/Djz0a73c6tOQXVoCws2Hy6Y14w4s5e2ewxYQIu+zNaiUK6jW/I/Fg7xmnvumuSPx15 X8J9L4NTxA9g3LviUOQ5zioPIBTAXE4qgvqgsb+8x1FSDGv8TTNUDImLtkzkEPX92pNf hgbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+EnDRmNd5kfpWX3P0s3uH/xQzrDYpKHljcddDMMSasM=; fh=+gcWZnANHo+jR3X+DESzP6z5E1MC1KgkiyfTCko/jXU=; b=FtO2y8akfQ6x3Ew6GZgGgG/IZyuE1ehscj3Ut0eGsdy5K8SQWSkSKG2kQ3PYWcZqIt oXdWIR5S5kLpB13UQq1ll8LpTxlXgiTAINeBa2WThJgbLmVCSYOVCj3jk/yD/d6DmVsg 9MxtR9u9Z8/eOiuOu7rxbBSp86R+986yiyd6Ax/Kk/Qe3Ri0W2hwUE77uUaRzNpwh2NO R271ylXlJYoQiKMW9t3TiS4lvlh0yNtSW7ba8rU3aWqKgfl8ZAzN4zKW7P0+DcJC4Yz+ D3FDCTQNl8k4z26472WyfIYK2q4Xu1ltWq8xIMqx7bEYDk4w0Vqiezf+LetdDblEVL/T i3pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mKaA1ibN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-47213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUEyxkqMFZn/raTd+bUkq46UEAr5WPBolbJS4ftfv31p8EHI08hlegeJGDBs0qlJakAfGUjs97b1C8AJumjJdHZKB7VFNuVkWKewnCwtw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r20-20020a05640251d400b0055f16e32fa0si3073454edd.86.2024.01.31.13.57.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 13:57:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mKaA1ibN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-47213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 311EE1F23C69 for ; Wed, 31 Jan 2024 21:56:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9C0B39FFE; Wed, 31 Jan 2024 21:52:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mKaA1ibN" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DD79039AF0 for ; Wed, 31 Jan 2024 21:52:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706737927; cv=none; b=ijsox2b4nQANHtTG6ZfW9Xa9Jfo2uU8muaoiLXwuLyq6IgfxQD+9L3o5I4Lqo/SpOByuXcasuq/t/TE+dPZ3ZPrQ4B1xrPsl4poN06KHIvB+bwqb4XnCLuQDEzQL9XWisqk4GmEHXQ+hbsKW1hz/3ospZAlxdylBdWDd/vUZ6Po= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706737927; c=relaxed/simple; bh=vFjHvXfUL5i6feP5C3Ew07enH8d3nXchQKB2m0acciQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kZdPEp2Bij+DBkBOYVw+k6Tili0sTfr/mAkyBCEp3Tq0joupqnrIL16nKWQIen96kOU6JvIDt8v1zP51HlFF18H7RaUufbfJYdaA1WVJYYQj81vXGQR5k1v1wTeBZusEosvw9rn5gEX2xNf/kQr+tuk9xkE5ou6VnxrLynpM9Ps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mKaA1ibN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE07BC433F1; Wed, 31 Jan 2024 21:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706737927; bh=vFjHvXfUL5i6feP5C3Ew07enH8d3nXchQKB2m0acciQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mKaA1ibNitOv514tmX9UOv95/OLytrnlFI4vS3s+qtWfnOvM0bCqXQtuEM2rXJh+3 52X0OGyRzUD4qylbeC8TjCChJOUw594geQ+xcnuaDc3xJUiW/uNizqf7WMsEnup6FN HXubtJLLEMdULg/qeC8VPqiK8E59A45f/APQrMDA1PGj5U5znrhZGbvPDXWaXYSUuE IbXAxxc/iWOTfhRRKxoVSN5gWKp6qXUgDvwtZ1ggdaxi8qPqaB7vT1Zvz/yHOgM3rn i/rwW1OwoslaiqmWasc4yV79t6NM5x0ZNt38sSvogB4tz60hBLl8fdGPPB7AmVbzGE +Y8WHR46VklZA== Date: Wed, 31 Jan 2024 21:52:02 +0000 From: Mark Brown To: Tejun Heo Cc: Nathan Chancellor , Marek Szyprowski , Lai Jiangshan , linux-kernel@vger.kernel.org, Naohiro.Aota@wdc.com, kernel-team@meta.com Subject: Re: [PATCH v4 09/10] workqueue: Implement system-wide nr_active enforcement for unbound workqueues Message-ID: <6f9b1f85-560a-402f-a813-7962218dce96@sirena.org.uk> References: <20240125170628.2017784-10-tj@kernel.org> <91eacde0-df99-4d5c-a980-91046f66e612@samsung.com> <20240131041205.GA3517117@dev-arch.thelio-3990X> <20240131042031.GA3946229@dev-arch.thelio-3990X> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8J6gE/oZudS89Qo6" Content-Disposition: inline In-Reply-To: X-Cookie: Disc space -- the final frontier! --8J6gE/oZudS89Qo6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2024 at 06:24:51PM -1000, Tejun Heo wrote: > Ah, I see. How about the following? >=20 > Thanks. >=20 > diff --git a/kernel/workqueue.c b/kernel/workqueue.c > index 9221a4c57ae1..31c1373505d8 100644 > --- a/kernel/workqueue.c > +++ b/kernel/workqueue.c > @@ -1510,7 +1510,7 @@ static void wq_update_node_max_active(struct workqu= eue_struct *wq, int off_cpu) > =20 > lockdep_assert_held(&wq->mutex); > =20 > - if (!cpumask_test_cpu(off_cpu, effective)) > + if (off_cpu >=3D 0 && !cpumask_test_cpu(off_cpu, effective)) > off_cpu =3D -1; This commit was also breaking at91sam9g20ek (and still is in today's -next), the fix here gets that booting again: Tested-by: Mark Brown --8J6gE/oZudS89Qo6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmW6wQIACgkQJNaLcl1U h9A8PggAhbi2pIn/tX3EJG4jko4rmlpT5Iq2q59qN57s02VMcGKN/LdKhO7TBCF1 V/ezYDG9a3maiQKWRJd+3nc/ZKVDFdjEUprvnR2Y7lvNqQcOeionUookfqA3EIhj qVBEV0jnBMXtVwOs18JMN8rwwLnNwcSXshnvdQZwzDX4yNO3x/KXsoEShnjrbsB/ 7uRq1KTdafnPvB4ADVLf3L7NOdqEDfjexaXdxEcvBWhA14HDs99ZWiQPASd0EDa9 LD4uFS5MLTf7oah6wVKXCDRumYeAQXqvjh8/bH//WsHPFOk1Sb2ADliE3v380SQg a5174RT31J+WnI4krNRlDs7ERIoZuw== =fiOl -----END PGP SIGNATURE----- --8J6gE/oZudS89Qo6--