Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4856354rdb; Tue, 12 Dec 2023 11:07:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8+Xeh2/h51FX3GDUk7VbMGeO/vXDuGUnseNs5jorhiQne72qaXycgFawKqnkTV0dMckXF X-Received: by 2002:a17:902:e889:b0:1d3:479d:3d55 with SMTP id w9-20020a170902e88900b001d3479d3d55mr660161plg.124.1702408032824; Tue, 12 Dec 2023 11:07:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702408032; cv=pass; d=google.com; s=arc-20160816; b=TFR6hhvu7ZmeHV83r5ebqFZuHVfyD9bJDTt2hta5O8lOuZXJc0ZH5SZ8tRBmOzIsta xzbc1I1KVjwjGx4ZGgEQtAUjIspfduyL0Du5j+7+etnnFJUR63VsV4Uidgle4lCma5Im U0SHHeESjQwUZhZWxkQgYVzFkEFOA2psFvh4SrVD3gr/LVqnY37Yng78COIOz8UsT8Fo 0exr/gW6JmcbTmYoQ4wdeo+C/pk2vbFeEVmBBsPXyGCygby7LdWAjWchU8eDiTlDyJI+ 8rBkgM46jZ15bDXANWqxKyW41KyeUlhU3WJL1RZ+UegiILsN0gGTcoHFPHDEurlxMOWp sddA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date; bh=vyywjWF12aTnmCUaZ16SqqoYfeU14aRZlpilYdAz69U=; fh=iUQvUuQL5aRJeZk8vwAsG3yaxu4MEN0HWGWssAiP7yM=; b=bEizAz95swr4FHMzS/imOttjsQD8rsGu7VTIthWLSr4U7amQCzxiqXTITWMQxjQ/d7 E4EscVbbRtGJYohdUo6PaY4VUYinQg9Eib4ou39xdfAfVIpPyB4kteJU/JcwA04N9kQ4 3U2dYBHkf50chEGApbjeiHV+Uczn1NVslBoJ8FWOHQlylztQY/J9QnoQlqWbdRJ5Sl+E v5XhK6wZY51Zsn7zMfdMHr5r2xrH0VIuWCkqff3VwqoCJmK45ojF8xgE/nOdeQ8mMfE2 khOrbM5HqEcgR/aU+7Wh8vhcXURwwSVGLswQuxG7P2CLHMFkeS27qtcUtjJ/sjwU9OX2 US7Q== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=atomlin.com dkim=pass dkdomain=atomlin.com dmarc=pass fromdomain=atomlin.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id bf15-20020a656d0f000000b005c1ce3c9628si8289221pgb.752.2023.12.12.11.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 11:07:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=atomlin.com dkim=pass dkdomain=atomlin.com dmarc=pass fromdomain=atomlin.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2003A80DA8DB; Tue, 12 Dec 2023 11:07:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232546AbjLLTG6 (ORCPT + 99 others); Tue, 12 Dec 2023 14:06:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbjLLTG4 (ORCPT ); Tue, 12 Dec 2023 14:06:56 -0500 Received: from GBR01-CWX-obe.outbound.protection.outlook.com (mail-cwxgbr01on2114.outbound.protection.outlook.com [40.107.121.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A6A8AF for ; Tue, 12 Dec 2023 11:07:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nBJThJFbaG276TEU721SbEAhT00xcREmf+52Bw1Tv2WNwAVXzvXVd1I0r0GjF4ZcCuUDZa18E5B3+DlUMbvEiSUOjetQfBt8QhPmSAGMJc+O9fndoRBC50TxxPZ51UUnmJh37HQcQLTKWsDg+tbXiqKvmzQbsPz9uJxG1gjr+3PxDFKXCYxGpO8m9YLopqIbPHnVIWlsPjRryy16Q5l2KVCCuV1xOK3BZFh9AdlX9RqVs6SURp9pzvz7SAvjLgCP7v5H4ge08Ags6bv7HvhPJ2s2/+BdzVdj0+tkBcGPQ5bFLNM4TEZxK9klG8CXmVN6fXBcgG0klI5oe4dHX5RFaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vyywjWF12aTnmCUaZ16SqqoYfeU14aRZlpilYdAz69U=; b=Y/sVeJnw3YK2tTpBQC5Vfkt4AiUXuWZ3rJL0ens+4UeMIIdVo6oRV3F2jx0Z9Uz0H6EVjf97b93ePIwJxdzcDhdvjmy6mo4lcf9QhbcI9eGMsm/RGXT64FErGz6yAYNEDD7I//ihkjOf8q7pj5CyITJMZYu38NyJoagZMudXWTK1uPNf09Z2ievrlTW6H5hidO1Gb9ZdPbS9IBSYeVv0k1jWmL++PDJx7tO2eWCLAjxO64sBddgXCeU+LiCQuHp4AioO6a8Afa7B1e6Txpu9l+UpGAjRMpLOiCedrI7DhCF20e1w3hrOyaH2p9DTXIg6Y+QoLcv8mh0O4+ozesRDWw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=atomlin.com; dmarc=pass action=none header.from=atomlin.com; dkim=pass header.d=atomlin.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=atomlin.com; Received: from LO3P123MB3531.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:be::10) by CWXP123MB3352.GBRP123.PROD.OUTLOOK.COM (2603:10a6:400:84::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.26; Tue, 12 Dec 2023 19:06:59 +0000 Received: from LO3P123MB3531.GBRP123.PROD.OUTLOOK.COM ([fe80::3b78:fbc7:bda3:1033]) by LO3P123MB3531.GBRP123.PROD.OUTLOOK.COM ([fe80::3b78:fbc7:bda3:1033%5]) with mapi id 15.20.7068.033; Tue, 12 Dec 2023 19:06:59 +0000 Date: Tue, 12 Dec 2023 19:06:48 +0000 From: Aaron Tomlin To: Tejun Heo Cc: Juri Lelli , linux-kernel@vger.kernel.org, jiangshanlai@gmail.com, peterz@infradead.org Subject: Re: [RFC PATCH 0/2] workqueue: Introduce PF_WQ_RESCUE_WORKER Message-ID: <6l7ytemuf3uluzh4ejugnrh4r2shjyvprrnkvxeesg5cgdarev@fo6bbbmwwskk> References: <20230729135334.566138-1-atomlin@atomlin.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: LO4P302CA0004.GBRP302.PROD.OUTLOOK.COM (2603:10a6:600:2c2::9) To LO3P123MB3531.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:be::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LO3P123MB3531:EE_|CWXP123MB3352:EE_ X-MS-Office365-Filtering-Correlation-Id: bba20492-e0f7-49bb-c904-08dbfb457e4e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 55ggwc9isXSaBPYGSfxsqpU6LLFyaYTleI8Vsic0DxZ/O6R5rN8B+L22sQqcV9hOjUeAh3lqQ4qGKMcSqso+6A7yX7RTVhkDlxgaCM/3IjGvzuyPdqFd3BVrDWwl5Ut4stzk/bjFIhxlCOG3h1qtjh2gkJt1TB3n7JVl8Z3chcJzzgWx7sArnRfJ/rGJtaDAQJKDnicjJF9DjcL01VYdZBVJxPiCk3N5Jvx7TT9Q//Pemxkkmdx7fa2zLndAiVZTXrmdo+j8Mkh12m4eWSsmmFJZj+gIpSQ89UlHBsMYNAnG3kKpBTieNl/qJ1Vsb3bCMSQSgAE/gjQ0eaVVMThEdEPGwZ8D9mTzLLxzjmfKkHpL52qsrevxH+iS5xLOHmZMRMbjm+zGDqwPwi+dxh2/TDdcrX/daSAH6NBd7eb7MFk34F2OMbvnzIGjN/BS51PbaqwRAnicIJRaJrpuJCKk4HGVBKUm2YouHgQSViSsbZ5/uytWTjwwN46vIDAXtW5c++p2t2OIKSx6eFheYuAg03rLamWpkJs0lK+JNhwKRTV/yS3nxpHeUZuh3UkJgFMa X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LO3P123MB3531.GBRP123.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(7916004)(136003)(366004)(396003)(39830400003)(346002)(376002)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(26005)(6506007)(6666004)(6512007)(9686003)(5660300002)(33716001)(41300700001)(4326008)(2906002)(4744005)(478600001)(6486002)(8676002)(8936002)(66946007)(316002)(6916009)(66476007)(66556008)(86362001)(38100700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?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hIVVkwWmU3OU9nQVpraENs?= =?utf-8?B?amFueFp6YjYrSm1sNTA4Rm9OUWJjTmxiZDRRZmwydjFrOVAzK0ptQWZ4WmRk?= =?utf-8?B?MGZkWVM5WXkvUVAxK25rM3A2ZFB3ampJWlE0b3VVc1J2QnhCL09BRk9OTGtS?= =?utf-8?B?K1I2UXNHUWpraEdxL3JIZlpJeHBpenRkbThXU3hVY3FmZnVLU0VaeURKOTFI?= =?utf-8?B?R3p4TC9ieUE0M1dxcXhoamtrMFR4bFdwL0Q4SlRqNTBsZkhidVNCUzFpRTdH?= =?utf-8?B?TU9JYm1HZlBWTGNOeVF2YTlHWE5jcFEvbXMrVzJrY1c4MVE2elc2d0NRcFBx?= =?utf-8?Q?EU9gszdxYQIJK6Zutogha7Avh?= X-OriginatorOrg: atomlin.com X-MS-Exchange-CrossTenant-Network-Message-Id: bba20492-e0f7-49bb-c904-08dbfb457e4e X-MS-Exchange-CrossTenant-AuthSource: LO3P123MB3531.GBRP123.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2023 19:06:49.4910 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e6a32402-7d7b-4830-9a2b-76945bbbcb57 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vyf6RQ60tL6IdEMonZ3onKZX45BXajKoy6kpBub29I/3YiBjHH/xSpqh/aWgDQJWjLDaS+3G++xkMa3dwMTQkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWXP123MB3352 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 12 Dec 2023 11:07:10 -0800 (PST) On Tue, Dec 12, 2023 at 07:14:48AM -1000, Tejun Heo wrote: > Hello, Juri. > > On Tue, Dec 12, 2023 at 10:56:02AM +0100, Juri Lelli wrote: > > Hummm, OK, but in terms of which CPU the rescuer is possibly woken up, > > how are we making sure that the wake up is always happening on > > housekeeping CPUs (assuming unbound workqueues have been restricted to > > those)? > > > > AFAICS, we have > > > > send_mayday -> > > wake_up_process(wq->rescuer->task) > > > > which is not affined to the workqueue cpumask it's called to rescue, so > > in theory can be woken up anywhere? > > Ah, was only thinking about work item execution. Yeah, it's not following > the isolation rule there and we probably should affine it as we're waking it > up. Hi Tejun, I am confused. I thought by design we want a rescuer kthread to execute on any CPU, no? Kind regards, -- Aaron Tomlin