Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1245528imi; Fri, 22 Jul 2022 23:00:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vuzdkMo8RyIdmrtnRQpdud+1BjoqbjH6Et3kEi2PhIgn5ZTFjoyOtB8MpGn0tj0AnBwOvO X-Received: by 2002:a17:906:5d0c:b0:72f:b204:c27b with SMTP id g12-20020a1709065d0c00b0072fb204c27bmr2414112ejt.218.1658556013363; Fri, 22 Jul 2022 23:00:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658556013; cv=none; d=google.com; s=arc-20160816; b=EXP0kUdN6NVTs05nCxpDTaccYyyr15taFlQV+icVztpYUidYgcx+VDL2L3Ix8ahbfA pP+Vfcq8usOfrqLTCzLX7DaW3jeQmTumh6cvKqd4O1R4yWQj4x8xsGYwgobNYk/y96hV /hxwp3wiyUzqVZZsCuNoG2DY0JqpccvSec7hHVtKV1ANLQ394a3GgIYxOZKip/zhZd2P K7wf4wr7lkRClU/XoV2kIJERmO991GeTT/Pwbav2cMbCQ0l5tkY9WbvqNUWhgWprX3Xx IwXvCxVqyxjvknpbsFoeoJSxnTv7z8TptKq2nmm1NH9j5LEAPB3H7kjhC7PSCHi31YWP eolQ== 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=IDgKb9BFnubXrm8nhsbHpuMtogqppyRnkCcL1soD42Y=; b=n0mgiWcr1VB5UAB9GlJ9IZlW+rvD/92cVSSwhqlgpLIb6dyaFtkjDu3hZneoslEZih nTyAkrDWCSbgJNwtmkjJMiCy+00b9fhnm3DA14myvKHozxfkose/wzJtB9zV+q5rOMyP qZV4U/LhGXEMTLvv/UsuxWmi6ncfSMZq79ybYQVYC9AYR5+4ZUW/afHkoEcE28abWUjW 2/uFVwe4V49SWAXKN2qfiJxl6ArE1Z/sM4XSqYhBRxfPYQxQQj1XWEeY4+zI0nLbhsik eTJEeXwpMQu3dG7/SiWKSnYvP5H0trfHAgynNJfsfb4xIz7Yrk/COyHk6GfSVempI+MU Y4dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ITLpKzWC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk18-20020a1709077f9200b0072b3a874867si8827491ejc.874.2022.07.22.22.59.18; Fri, 22 Jul 2022 23:00:13 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ITLpKzWC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235993AbiGWFQZ (ORCPT + 99 others); Sat, 23 Jul 2022 01:16:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbiGWFQY (ORCPT ); Sat, 23 Jul 2022 01:16:24 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 897CF12ACD for ; Fri, 22 Jul 2022 22:16:23 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id bk6-20020a17090b080600b001f2138a2a7bso7613730pjb.1 for ; Fri, 22 Jul 2022 22:16:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=IDgKb9BFnubXrm8nhsbHpuMtogqppyRnkCcL1soD42Y=; b=ITLpKzWCCm+TJvDJ6q0kKJjw+YvIxJNA8z+SPLaB5RIW1thW64NDKtAY5RO/ztYdrb Inqt3oXw4e0OEhLMdLHJOilI4hfsGJGCJ23eh3sXVnVPJ/rGdQwi6/P2uu6791mVLOvW cwIPkt4o3TCRls3JJ2shQ7E5jgUlOKk97SnSlTkGSYR/ebc3s/SHUbTZS/WID+iflu6t e5p633A4ULYZzrakxf5Z86TubkR4VzX0lk+DCnkzBE6y6QpcCbniTdhQyg0kSOTSE/wn mTcD3hgbogHYddxyUMsslVE9nXbX7YPpR6oMhoOKn+Z0UxPlnMqp/nLootM/zyHzdJtf 0w5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=IDgKb9BFnubXrm8nhsbHpuMtogqppyRnkCcL1soD42Y=; b=mrDbokt9I6UzSWmhqPbCmMwjBwtvMR6oMGJ8Mdne32hsbtdIHRcyRRltU7pv8nrEgr TSbs22bP8O79wlxgBwewacKD1S/UGrsdYDvnjcnn0c9P2rDcVdwq4mka5qjSnDDl3eE3 3c9tGsFSN/YocAEvxk9oIzgVc3m73D9BfBJd5v/l+Q3A8iPJnNMxzJEpEIrgD7sZ9g2d SaP7RR/u7N5loHVCRhe+l6qk5hmaQYWAYoaC76+piijupxl7jXlcJI+P73vrWjKOZN33 VJACufl8ZHQGncRvqsLGrr9boYUfZB1yz/mHBRkk64aDTVgOf9vluUuiwvpOx+mhOH6Q vWpg== X-Gm-Message-State: AJIora8/Ctcjuc5Nj4VfgQj0sGHr90MrER+DBaZmHwyXI8YWNVnmi71o Wx2O2d3hBtSGvL0MuNCg86E= X-Received: by 2002:a17:90b:4b4d:b0:1ef:a2c2:6bcc with SMTP id mi13-20020a17090b4b4d00b001efa2c26bccmr3321969pjb.186.1658553382689; Fri, 22 Jul 2022 22:16:22 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::5:d97e]) by smtp.gmail.com with ESMTPSA id a9-20020a170902ecc900b001641b2d61d4sm1971584plh.30.2022.07.22.22.16.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 22:16:21 -0700 (PDT) Sender: Tejun Heo Date: Fri, 22 Jul 2022 19:16:20 -1000 From: Tejun Heo To: Valentin Schneider Cc: Lai Jiangshan , LKML , Peter Zijlstra , Frederic Weisbecker , Juri Lelli , Phil Auld , Marcelo Tosatti Subject: Re: [RFC PATCH] workqueue: Unbind workers before sending them to exit() Message-ID: References: <20220719165743.3409313-1-vschneid@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 On Thu, Jul 21, 2022 at 02:53:43PM +0100, Valentin Schneider wrote: > > I think it needs something like task_set_cpumask_possible() which is > > documented as being usable in (raw) spinlocks and set the task's cpumask > > to cpu_possible_mask and let the later ttwu help migrate it to a > > proper non-isolated CPU or let it keep running. > > I'll see what I can come up with, thanks for the suggestion. Alternatively, we can just kill all the idle kworkers on isolated cpus at the end of the booting process. Thanks. -- tejun