Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9987545rwd; Wed, 21 Jun 2023 14:47:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Vwe+nN63PLw/UD+UuLZbQafpFSx/bI80C0mNT5naENq6yoWcvOSd2cl7+m6RUU+4kDydr X-Received: by 2002:a17:90a:af85:b0:25e:a795:c349 with SMTP id w5-20020a17090aaf8500b0025ea795c349mr12020093pjq.41.1687384024461; Wed, 21 Jun 2023 14:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687384024; cv=none; d=google.com; s=arc-20160816; b=m1GopGAMu2ZAU8ZRay5jB/js/XTUQ5nOsCU1GUmb8dD0KYNGUOfo3h1wjU22J509ps iZgtpcRljWNW1Y3cMfRqP14F5CEOKMT3627B8vdscbEq+pB24vTutKPXsnsrr4jpbTOn Fv2rxK0y/ceH9X5NA802c7+p8HM+r4ulVnMbHLQEijA+Kx+fAizS5lU8Eo4tb8X//jQB 3fbcpbg203dEA3ZjOmUmIRxVHaBjLWLJ2vpZiXpddc/hKB9Hjd7OY/2MhokVTL58hxBs 9QVB6chSdJ5uh6274s5nNaNoAjDXS0cYkpYVceLIMpfnDdKWTKYt2BEeXH6zIFWKxytI DLpA== 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=C18UQINdS5AjzyWRkXOaqZPdN5xsZkqemi1LOJpmwdU=; b=G37XAGFRaQIOnLEmgxfzTP0T1Zfo34l6RzvGB9py0dMdWeCjaJKO26q9MMVQIAruqm NWbAZlUHn0tWjAtOAqUMY/B+u/lmx+6niaxK43k89v/bWI8FNW856VI9WGV99ztzMc0X 7CLVL2DocBTMCLyrIKNHSTOT7qoqw/LpZgsUWvbpTAjt5ZO25rPrRhS4c84REEhqVZD5 /c5PA08iwkeV9ldazwcEkI7vxedqSj+4XwHPAzD3f8RKpdc/5QNQde1WvAZqFquv6EtL wbUJYkAgat06dF+IpZyMix3bkY1ajl7s4CwBRpDH2IlejgJOYXKc3Cc+wt3rXRm/tx8V EKPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=fIyyDmfT; 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 y6-20020a17090a154600b0024e12dc1e4csi12845711pja.86.2023.06.21.14.46.52; Wed, 21 Jun 2023 14:47:04 -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=20221208 header.b=fIyyDmfT; 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 S229719AbjFUVcZ (ORCPT + 99 others); Wed, 21 Jun 2023 17:32:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjFUVcY (ORCPT ); Wed, 21 Jun 2023 17:32:24 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F80B1B4 for ; Wed, 21 Jun 2023 14:32:24 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-77acb944bdfso329278939f.0 for ; Wed, 21 Jun 2023 14:32:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687383143; x=1689975143; 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=C18UQINdS5AjzyWRkXOaqZPdN5xsZkqemi1LOJpmwdU=; b=fIyyDmfTyHbv8RqxwZ403AAeiwsZKEp201V7R0VRQFxbyim40pUHg57VpmXP/QoVsb 4v3AUB0xDCvv3iKDLGpQFBVfvwrSRljvd0p6BlDqJAV83a9Jdz1zd7mlHZi0pDhtTojO PO3SjYiioawZRl9/ws8ezaQ7eiIts2j6Xctm2MEeqijofFVuh0T+0g+SUNlko9O9kxbk 3lpRN3NTBTGmJIATYxZhYzHrDYwfKW0S8HE+oZJm3rfqmbRSx7GQ42V4F/zrMEweBVly 3WXxxbu4sTtwKe2vh2+pmOfsoY9J9FvZ1KK7zwdHimZqBbTfgh4tQoMOWuLZIPDt/jXH PivA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687383143; x=1689975143; 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=C18UQINdS5AjzyWRkXOaqZPdN5xsZkqemi1LOJpmwdU=; b=ZfOyOPP0N+N/yJIM3I3pTZti+XkxBBEU9I8ebWQthZ7RHs+0Gkue2ML1V+YngA3+Mb CnOc3anuE0FLJxK7JnzCFOeHnwg2ZD/zwlg4cQtvm6Igrw6KN4TrZrDRAQyVmVrwUbXZ ytxoCt6NgF/hKuuXD0KVK/s+O4A9xcyObqzWF9dx3Ko0jOtyiJ+0OMcsXegQppK1omm+ I95JfxkBsuekAxM5n1qwZeab9U4iYL8aYTAw8OPM2JaLahoRjnl4OV3S86CnZuZ0/b/1 dbVzPz/uqoYJS4pcgfqAyNTCZ+pDqKNqeVuo2jG8J07a9LoguA0F+1zTSN0qvKzyLq63 wR2Q== X-Gm-Message-State: AC+VfDw7CGohZTodmXhT3XoWxIO7wkdVJvzwkiNtKAh7Tdn3WBJmbVqF GUwd8FO2Y5nd0S+Ao8s3dac= X-Received: by 2002:a92:c6ce:0:b0:340:90a9:1996 with SMTP id v14-20020a92c6ce000000b0034090a91996mr15935299ilm.1.1687383143273; Wed, 21 Jun 2023 14:32:23 -0700 (PDT) Received: from localhost (dhcp-72-235-13-41.hawaiiantel.net. [72.235.13.41]) by smtp.gmail.com with ESMTPSA id v13-20020a02cbad000000b004266a748d45sm1555713jap.161.2023.06.21.14.32.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 14:32:22 -0700 (PDT) Sender: Tejun Heo Date: Wed, 21 Jun 2023 11:32:21 -1000 From: Tejun Heo To: Yuanhan Zhang Cc: jiangshanlai@gmail.com, linux-kernel@vger.kernel.org, pmladek@suse.com, zyhtheonly@yeah.net, zwp10758@gmail.com, tiozhang@didiglobal.com, fuyuanli@didiglobal.com Subject: Re: [PATCH] workqueue: introduce queue_work_cpumask to queue work onto a given cpumask Message-ID: References: <20230606093135.GA9077@didi-ThinkCentre-M930t-N000> 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,T_SCC_BODY_TEXT_LINE 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 Hello, On Tue, Jun 13, 2023 at 06:25:44PM +0800, Yuanhan Zhang wrote: > If I have several kinds of works, and I'd like to make them run on > different cpusets > (so it is not ideal to put them on WQ_UNBOUND). So, you can achieve that by creating a workqueue for each group of work items. Each workqueue is just a front-end to shared pools of workers and groups work items according to their attributes and flush grouping needs, which is what you're asking for here. Thanks. -- tejun