Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4606010rwb; Tue, 8 Aug 2023 10:51:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8ELlKCPRuTZjKx23jCw1J6cstWYyL/uKVB8WFAbYrIIH8KnLx0H5Ke82JOU0aidO6w7Bn X-Received: by 2002:a05:6a00:1a0c:b0:67a:8fc7:1b61 with SMTP id g12-20020a056a001a0c00b0067a8fc71b61mr251884pfv.11.1691517112363; Tue, 08 Aug 2023 10:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691517112; cv=none; d=google.com; s=arc-20160816; b=DMnKR8BWSYFafsJ2PDmRDXGVDrHkiVZb6Dxv3siHgaA7Oj/w3hY2i/82TUHXFwoxHl pFxr+wGx3pIEmobDSFADHkL1RktnH4nhukwMe3Zl2JjGozme0vhg3deNjYCGDodvTckt XL8ayiNuS2VZtZBNXK9HzLcH20Kc1cfN6QvJxIEOwjLm/eG5wolpGSgjr9TQykb4mxVI 2Gd2jG/htaM825tp0VdoDNjkXPF4xEAL/nE6cBcrYL61gRFgRmQ6OpYlbxNzB+hfNcEU M0OfUf7D0HcmVwWLkvJpFOPWY/beHLtTf/njp2ynXApS6GM/gVG/T+GUR59vbj02dxlB mhww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=klyXlC4p79DDFslSEEL5c0y8d2Vhu+CeeBhaE4i89d0=; fh=a/8srlCr7ZuOL9dLHhjXr33NcJQCC9LdC4rl4ej/yQI=; b=Hsa0mTN6e1H8/eMo7yPBndAkGX0TrB2SSm29uJsDiEuPNsS26b5GQl9c8jPsGgVaY4 tP/k/115XxI4oO5ThKysBF1Uti/EknaKSO5EVV8saliop3o4IhTnPyPqHREaMgRG3OXJ IPpaLoYJrgAsboDdJqg6HceL2Odbhm17l9mlgsMzGqKwPq5KtrU/gekd95BAffKtgUsn 1/gkXWPpWPDsUMFInzRGEqHi73G1TtIlDrJutf25DYnO+JDtQfeD05LGPGW+g1Ss6xWP tWRKQM9cqHfLxO0It5SrRuZHIwvyxxkJKSIAtkDusL76KvHGosc3VNvs8vPDh/zNPKVZ xrAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ck14-20020a056a00328e00b00682850547afsi7458898pfb.193.2023.08.08.10.51.39; Tue, 08 Aug 2023 10:51:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234362AbjHHRRz (ORCPT + 99 others); Tue, 8 Aug 2023 13:17:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234202AbjHHRR0 (ORCPT ); Tue, 8 Aug 2023 13:17:26 -0400 Received: from p3plsmtpa08-10.prod.phx3.secureserver.net (p3plsmtpa08-10.prod.phx3.secureserver.net [173.201.193.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A15AA71F35 for ; Tue, 8 Aug 2023 09:07:06 -0700 (PDT) Received: from localhost ([82.27.99.45]) by :SMTPAUTH: with ESMTPA id TKp4q2cgcSiNMTKp5qBcro; Tue, 08 Aug 2023 04:24:23 -0700 X-CMAE-Analysis: v=2.4 cv=L8fbAcf8 c=1 sm=1 tr=0 ts=64d225e7 a=YwMIiW7BGddQzL8MrqPWMg==:117 a=YwMIiW7BGddQzL8MrqPWMg==:17 a=zbEXTGt8dRSy2PkKq4cA:9 X-SECURESERVER-ACCT: atomlin@atomlin.com From: Aaron Tomlin To: tj@kernel.org Cc: atomlin@atomlin.com, jiangshanlai@gmail.com, linux-kernel@vger.kernel.org, peterz@infradead.org Subject: Re: [PATCH] workqueue: Rename rescuer kworker Date: Tue, 8 Aug 2023 12:24:21 +0100 Message-Id: <20230808112421.3390505-1-atomlin@atomlin.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfIT1eybOuCnkoI6fym4VG5UVHqPruL3t0yIpAEkFBM34hzmtj4soLYoZ0fIZK3dq6EhcZZl+xVnDUtg8bU6fs1oWh5ptQxW3Z2afmneGgytYYTSdrotT qWxNN8EqLf2zdPAKf7LUtQrSWdfhPvBr4W5TjTGZOqAupDGafe+VJZrrm6mZY16GJ0Hwp6fccUpwxsq0VMOqpk42HLliFx5AcXeRhvi1HtuZ+6xWFfauQlGN t9xNqHPipAu7vLod3kaPPbJmsoUaFuef1w1vmJ7zT2UYZAT82Noln8nvditkYYB9CJtFHoLibrhmtPtfpZZLcA== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I'm not necessarily against the rename but you can't, or at least > shouldn't, modify the cpu affinity of any workqueue worker. You don't > know what that worker is going to be executing even at the moment when > the cpu affinity change is committed, let alone in any future. Can you > please drop that part from the patch description? It doesn't make a lot > of sense. Hi Tejun, Understood - will do. Initially, I wanted to stress the point that user-mode should not pay any attention to a rescuer kworker's CPU affinity since by design it can run on any possible CPU. According to housekeeping_setup() and workqueue_init_early(), if I understand correctly, when kernel parameter nohz_full is set then each unbound kworker is not permitted to execute on any CPU in the specified range i.e. the unbound workqueue cpumask is set based on the housekeeping cpumask only. So, that's good enough. Kind regards, -- Aaron Tomlin