Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5511203rdb; Wed, 13 Dec 2023 10:38:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSz/RTBLEvPiV5RRRuTFZ/B6hKP3OvHitKQHwD/Hjf9W2WiZk5iCa+ReG9x1W1CKc4nRCq X-Received: by 2002:a05:6358:3393:b0:172:8991:8120 with SMTP id i19-20020a056358339300b0017289918120mr1695447rwd.60.1702492731383; Wed, 13 Dec 2023 10:38:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702492731; cv=none; d=google.com; s=arc-20160816; b=c9tKvN5tYHkczvJyQ/wORZs4jlKhMitzPOilXSoOm8ZAmX9LaWBtQgBpq3xSerKiVf Po0YLp88yl++vUJAbyM4MebsBXoqNlXGWwCCAQs7jHIG6nYNzueqCX/q9uCXpE372LLK xO58N1uXdk0bFH2eJCmCvYiaOC9QctBPna9asm4j8fD+Zm0fywepoAjTZE5CSQ/3LSmK YaXf83DcBgGeQdpwqlgYJ8PPQoR84QSKMdWzr8xlipVtGQhxmsK/A4Zs6Z1I38jdcA3g DrgBLAHyplJzopE+PbNkZHtVNgu7WFJ73N/s3C+ima68P6s18fOXmbBYzNU7Tnh7NXMI 3Ogg== 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=aP0+DaLfepHxP70wW1Gax8IzK3ru38iVVmbmgXj+IhY=; fh=og76fjkLdEf9SHPYfs3hJrcMXSvEdFsnNc6whBLuRAE=; b=ZgV7C+hkmLJtB4rZDBbg8JZZi63PWOhQSv6XDFWoyrPsI8UX3Z7zF6EaiODgO/QgJp rAigbRZA+uOkjEQLKi9JeFKb1wPa2fxwoq3f8ya26XUs6Iy9W9A1UvZIPW0yuV5olmbz 3uGb/KoAVD+NiKYu5Kwpux2mcGET4jLn2MzCA+h/cU8xTSfX8XcgjUHlw/toRKIopLEo 3Fs82PyM44apmb3C+xbJYDjiXBlvsv7lnv28/dIyOH8HE7HX6yEeIRDKvy/uYSoRWuZo udhChvAk+rUS48XMME4BhmvLs/ldKOXgF0nf+Dsi0LS3tIOIOlVrQrWQJWcIB5DxhMz3 cucw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TgbHx0u7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id i8-20020a6551c8000000b005b56de1fd82si9665535pgq.272.2023.12.13.10.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 10:38:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TgbHx0u7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 0579C8098483; Wed, 13 Dec 2023 10:38:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233781AbjLMSif (ORCPT + 99 others); Wed, 13 Dec 2023 13:38:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233604AbjLMSi1 (ORCPT ); Wed, 13 Dec 2023 13:38:27 -0500 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FCA210D for ; Wed, 13 Dec 2023 10:38:34 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6ceb27ec331so4724014b3a.1 for ; Wed, 13 Dec 2023 10:38:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702492714; x=1703097514; 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=aP0+DaLfepHxP70wW1Gax8IzK3ru38iVVmbmgXj+IhY=; b=TgbHx0u7m22dJFWYt6TRDACn88IhEI6UHj0hqxR7kxazhiUopMX0eHc+uEZVxa4Ldp 5tPdpxCMZokWscIuOvpjoOa0b2HNOpxquWAU7p/hd1Y3tiU5HvjpDLdrdNz1xlj4UIny JIF6DataVDEpE2oMNFvW3mf+LfFUbAMBR9EQ0tp3det/Hg9xjYmHcKgJVC3AQo8Je/j3 Im43d3yr/NyeZjMDL1d6Ep5vQtW1POEQNiHeYCPi64ZU6NrBPbziVvDbw7ixt90xCEA5 RoQezo23eM9lVJnvuN/2K1TJpDKMnYqdtPRaATOCVm2ituUeVWlo60LcRSu7OYdF/xqA G1Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702492714; x=1703097514; 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=aP0+DaLfepHxP70wW1Gax8IzK3ru38iVVmbmgXj+IhY=; b=Qjq3VM8wBoKjLjNnW+hI57yRSfhmgnAPZqh82pZapAbJqWXw+eCdQrale19x3PNho1 Ebc2HQP5dHB5HPGmhfDzdVL5sOKomR4YmRuBGhGmuawEbF7BghynOKBQXLleQwhjlNkA uWA0r2qpj8wcaKS+YMFd31ehgu3cvL9N/5mB6KxvFWHWbWDVXxKONtq2kR2n4E6R3anW 2rbWoCyRTm0hGZBoB5MP06Oh15bHs4UnKujhQL5LCTdz4Cl3LeVrZ4RFzOJjrcwhJTve WqYMLy6ipG9FU/QQgoOdG/TDP4rW3x0A9Wb7rl6kefyNJviN6pGS1Rhmopyml152rgfZ EAjA== X-Gm-Message-State: AOJu0YyRul1Jy97i6wCqbgI3bb6BWgk4tbKek88Fmtkg0wc2PmJfaM0G eY620q15I0uNS0pc9ftfHVQ= X-Received: by 2002:a05:6a20:8f0f:b0:18c:159b:777 with SMTP id b15-20020a056a208f0f00b0018c159b0777mr4979433pzk.26.1702492713524; Wed, 13 Dec 2023 10:38:33 -0800 (PST) Received: from localhost (dhcp-72-253-202-210.hawaiiantel.net. [72.253.202.210]) by smtp.gmail.com with ESMTPSA id k8-20020a63ba08000000b005b1bf3a200fsm8959166pgf.1.2023.12.13.10.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 10:38:33 -0800 (PST) Sender: Tejun Heo Date: Wed, 13 Dec 2023 08:38:31 -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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 13 Dec 2023 10:38:49 -0800 (PST) On Wed, Dec 13, 2023 at 07:32:10PM +0100, Juri Lelli wrote: > > Maybe the easiest way to do this is making rescuer_thread() restore the wq's > > cpumask right before going to sleep, and making apply_wqattrs_commit() just > > wake up the rescuer. > > Hummm, don't think we can call that either while the rescuer is actually > running. Maybe we can simply s/kthread_bind_mask/set_cpus_allowed_ptr/ > in the above? So, we have to use set_cpus_allowed_ptr() but we still don't want to change the affinity of a rescuer which is already running a task for a pool. Thanks. -- tejun