Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4167563rdb; Mon, 11 Dec 2023 10:40:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMAkhPiJ7tFcq2GCi3Ns72UNh6vpz51IOveWRKd2K3LLAcnS7fplBZxuaCDPLxgsXmr1iB X-Received: by 2002:a05:6a20:918b:b0:18f:97c:b9fa with SMTP id v11-20020a056a20918b00b0018f097cb9famr2839132pzd.84.1702320004972; Mon, 11 Dec 2023 10:40:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702320004; cv=none; d=google.com; s=arc-20160816; b=uNRVtM70ef6h90SqF2q1S+u5eeoyuBj97NjhZXM1eARINcipbraTZDqEXrL66f7RFS Lpq/XsMBboQE03zHlMSmDLJ4KE5GTANaGPEkaYmO2eVcbrVmT7LRwXiPv5JApfV67COO E5SlPo9HX8PP/maf5FazkOYwGnwD3CHHt8Fb8kQKEJyTgB/tp70W56bzjbQaISr9eNRb vOX4+1A6ioMQBgjWypjpG8nf5q4BjNGdZZajyyn1DJQ7rOb3Zpbq4E5B+HEvCYsQcaJA ds/glADQHDCnjEiNeHZQ9Yi0ApdljluvkTnjL93isPgX8LVsLJrs6HVb/COWlU7L5EZW ReIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=CnXPcTsmT/cm9SReN3VMxlP9k/6LTC9VBWFDGvdk3vc=; fh=og76fjkLdEf9SHPYfs3hJrcMXSvEdFsnNc6whBLuRAE=; b=Tc1n2D3NDNlaWNa0fkTaBIrPBkQAaRAHFMlRKs6zM1XUDKpjfXcJGTExqs0HeSEp4I cFoyo19KE9wXrP0yvKWeSyUt+qis8bNqfMBNuHiV/jCzjPyzHslE9IH0y9OqbKcUTVcV HJmN1uA0gBfgZEtfNsZLQ7qFeuhQk53/ikD4vKA5r8ma8lUMIk/wTWKx8NCQRJnA9cRH ++WY9aq+CtiMOf3zxR9BUcfFEKLHo2fJfqm2drZ1+4sqX89XvprVjMs+uURpLGkvacmM vKcR0+HExg4KHGqiI1O1BKb7g5gYnTqTNAqv5iDSHpiOnzcZYr+zd0CyH/TqCg7dFimS aHxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X7FbieZ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id pf6-20020a17090b1d8600b0028881bb2b5bsi7804611pjb.188.2023.12.11.10.40.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 10:40:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=X7FbieZ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id AC779805E022; Mon, 11 Dec 2023 10:40:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345362AbjLKSjr (ORCPT + 99 others); Mon, 11 Dec 2023 13:39:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345340AbjLKSjq (ORCPT ); Mon, 11 Dec 2023 13:39:46 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3FC9CF for ; Mon, 11 Dec 2023 10:39:51 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-28865456abbso3426061a91.1 for ; Mon, 11 Dec 2023 10:39:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702319991; x=1702924791; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=CnXPcTsmT/cm9SReN3VMxlP9k/6LTC9VBWFDGvdk3vc=; b=X7FbieZ5RMCBdjOI3aEtGzkFJz3YhHVfVDmGHgPZJB+vTB2FwiewZFVAA7VFiNHZHJ 3RWOcNMzyu3uIeX8qJyZKpNMbvtHO7JHUCYkFZrz7mK7cBzzziKJDJ4jBHFvGl7Fuf0k vyve0fyXxQoTHy7RdLhDPUansPhB0PYToRfbTn5BGi1GqSo4Wfimt5QCySY3weW0rKek ce/HNPoRewcVxKfIy8waChv8UCMps2L1Vj45FlUnR2fh1V+PGnOfyOYIsEIe8JSzDtuO M0cpOMU0pNhPY/gGYXNLdj5Ih85SEiUhuk26/3mFpT8E5Zecp4lBMM4Q5e71G76FwuOB scSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702319991; x=1702924791; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CnXPcTsmT/cm9SReN3VMxlP9k/6LTC9VBWFDGvdk3vc=; b=b2vYJd0qjjlnEZRooxmFs54NSLUamQXrHm+BNxOGA42jBceZTD5WYM8VE9stSLW+hm qz3AKyiPbXrF2qa8eJIkYh9CvbQU3zD7KV0CxwbAU1OolG1wmCAwD3MImN3hJOV2HE8o +FubzMR7/8X+pUdhqqm4XxEczV1Yb55XT6BMquMMBzTZg9EmZX4n1/CLpZM7IMVu6Ezh m7eK3qYof1f7zHkQhctd31idTdoaHqo5rCsEhLStrcLkVghK3cBKb1kolWS4WAG7AteT dlaD/iUOigqPDkFUpJ87CxaqzZVTENd8AVqhxcDiZP/K9XnS1B7msnCEq6XQ0vLKsVOe QvMQ== X-Gm-Message-State: AOJu0YxeYDjYs+zeB2u7eui6e8TYz7yatHlqKpO23IWNLg1OqBdjzlcW 7qnIBW7B4FUxiW1tjS8N+3R77mYpqxk= X-Received: by 2002:a17:90a:d318:b0:286:bc9c:327c with SMTP id p24-20020a17090ad31800b00286bc9c327cmr2192183pju.22.1702319990941; Mon, 11 Dec 2023 10:39:50 -0800 (PST) Received: from localhost (dhcp-72-253-202-210.hawaiiantel.net. [72.253.202.210]) by smtp.gmail.com with ESMTPSA id mt20-20020a17090b231400b002853349e490sm8987614pjb.34.2023.12.11.10.39.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 10:39:50 -0800 (PST) Sender: Tejun Heo Date: Mon, 11 Dec 2023 08:39:48 -1000 From: Tejun Heo To: Juri Lelli Cc: Aaron Tomlin , 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: References: <20230729135334.566138-1-atomlin@atomlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 11 Dec 2023 10:40:02 -0800 (PST) Hello, On Mon, Dec 11, 2023 at 03:51:57PM +0100, Juri Lelli wrote: > Guess this is a requirement because, if workqueue processing is stuck > for some reason, getting rescuers to run on the same set of cpus > workqueues have been restricted to already doesn't really have good > chances of making any progress? The only problem rescuers try to solve is deadlocks caused by lack of memory, so on the cpu side, it just follows whatever worker pool it's trying to help. > Wonder if we still might need some sort of fail hard/warn mode in case > strict isolation is in place? Or maybe we have that already? For both percpu and unbound workqueues, the rescuers just follow whatever pool it's trying to help at the moment, so it shouldn't cause any surprises in terms of isolation. It just temporarily joins the already active but stuck pool. Thanks. -- tejun