Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4786970rdb; Tue, 12 Dec 2023 09:15:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjBkjVsJi/Yfzjm+DlPsxI3KL48PZEh+au2qfC/Icp2PZhj7IsupYR6210vdnBT2gu0Ugw X-Received: by 2002:a17:902:db0d:b0:1d0:b6d1:d447 with SMTP id m13-20020a170902db0d00b001d0b6d1d447mr2646492plx.77.1702401337897; Tue, 12 Dec 2023 09:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702401337; cv=none; d=google.com; s=arc-20160816; b=N5nA3hHZLYsNdb92vQL61xXPw+wt4O34UFjeg5Yp7MJcKbyhBdMH4feSvRrep60TYd fT0JGYInfQ3CLPS7BLy/Sis0WYdeHCTYDsKT4+38daV5CzAcb8KAQsBP3VUScpSuLD4r EfZ5W4UirI+rz9wO1YVi0cSG2O9HPo1HNS44f6QKVUqYj64oazgFV+B5d8BXCv3tjeHd nV0buQkcCu7k6qNJBuic2BjdLKjLNk4Tnec8qKP+k2YRHt4BxGxIbIL2Uw+qjUUBxgzj q4Rtr5GD+lVRTTc0DPQABJ6YyGUmxAfinvqZPqNPWh13eKxhL5pPChFwyygqrKHQF+Q3 dY8g== 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=OOmVxyvlV9iC91AJreDAWLoQkSzQ2NPxXA9m17q8MxY=; fh=og76fjkLdEf9SHPYfs3hJrcMXSvEdFsnNc6whBLuRAE=; b=yyOoXHTAwuUUoHDDCQMmuhwvWpJWyMBt5Zaby9GBMolvCcdZdchMBnBFLLjqS1UAXL Hoc/NtGvlDcAF07c60jWgwI9VGlzzI8r74x1scpprly9gv9LGiLSnVlJ1C+/TGatNdMj o9bcnPwYQoGp0VdDQ+0gZo6sSHWiPlUGROsYUMHP2cxZbL1A4HMK/4KMRFrFtPkh0sLv S3D78KB5COi/FuUNFohNwW4eggICVvaQyxZDqOMTL5ZULP1jDRsACpmH9Z00FD5N80R+ n5cr/U6cBzOP5/a849gEnVl/hUWvZhuO37m/pgshcDxD2Fd+oIU6UNek0MtIGvG2wkz3 q7mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b7pAbrzr; 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 jn3-20020a170903050300b001d04dd7cd12si7911555plb.194.2023.12.12.09.15.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:15:37 -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=b7pAbrzr; 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 725A880A4AFE; Tue, 12 Dec 2023 09:15:06 -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 S232981AbjLLROr (ORCPT + 99 others); Tue, 12 Dec 2023 12:14:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234944AbjLLROq (ORCPT ); Tue, 12 Dec 2023 12:14:46 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE12E9F for ; Tue, 12 Dec 2023 09:14:52 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1d343f8e139so3269205ad.0 for ; Tue, 12 Dec 2023 09:14:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702401292; x=1703006092; 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=OOmVxyvlV9iC91AJreDAWLoQkSzQ2NPxXA9m17q8MxY=; b=b7pAbrzr6VIlhGCfNZIuie1yBO3ZO+FRSRO7bH+PQ7EeJtVsKvROlTzTOwOyBaK6Qy +fM9XuSO6IXyzjYCfBVbcB17qj3gik6SCKWiEzSaOfQg1PILl1l2P0ysM0dyO/l6lO02 9UoG9wdCtZZKsrc3+2TBOWANmpuMQ+6RXsLni5xbkmq5dZQcwjRmuNMIF9wOMp8SaCfg l21mzp6VXcBsci8DKewH/XY0WEJ3mqS8RuGSnkCKt6546ZoAgAy8GUiJtUtpATxvNcZQ x/EU2sYUdgCiMX2U5su61Voc7rkX6B0Zhj1caiCO62OUcXYHz3LDdoIcRpapYadTiErN ubnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702401292; x=1703006092; 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=OOmVxyvlV9iC91AJreDAWLoQkSzQ2NPxXA9m17q8MxY=; b=gjE8u3rzK6LB72pkX8Rhx6oACZXEKURTXSvWOD1uA7T/wkZOS+lDIfXwFmWowoVsGY peQEZt04gEONimQ+QAIl/pvBiud4PyIGxg6U0iWdQSqn/9Il3vDwjOfIYUAzEIKmw3aa E8ctezPmBdnWRzZZ4TBGFOgP/Yu1Pw0kKEBL5Lb2JNwrzxnjQ3VsyRvO+DXwWEVKbbDd X71JyN5waJGXsHcwvZ4nNDi+edXlG73VMxh+Stu3Q4Vsbr5LzTGR+rbX1IAQNgIdSAo8 Z4xWT4f3Ghh7tGT/SEmirwb8MdY1ETWifm3ybhAOBZfrqPStlgn1RXW3VezZHSilsfER ZvXw== X-Gm-Message-State: AOJu0Yx0FxMi+HdWuszpNZoLKKX1dxtBy1pTTG/OB2aMZavzPcYGQIAI U+eCEQr2lTiuMICInhKQgwE= X-Received: by 2002:a17:902:bc4c:b0:1d0:91a0:a29 with SMTP id t12-20020a170902bc4c00b001d091a00a29mr3127951plz.6.1702401292134; Tue, 12 Dec 2023 09:14:52 -0800 (PST) Received: from localhost (dhcp-72-253-202-210.hawaiiantel.net. [72.253.202.210]) by smtp.gmail.com with ESMTPSA id z14-20020a170903018e00b001cfc15993efsm8896620plg.163.2023.12.12.09.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:14:50 -0800 (PST) Sender: Tejun Heo Date: Tue, 12 Dec 2023 07:14: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]); Tue, 12 Dec 2023 09:15:07 -0800 (PST) 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. Thanks. -- tejun