Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1363539rwl; Wed, 12 Apr 2023 11:37:05 -0700 (PDT) X-Google-Smtp-Source: AKy350YtxBgSVKdWOPZrN0yG3lP7xRIjm3lBDEK0VD2125uHuz8CHocQb7hUnyGoK/j/uFriau3T X-Received: by 2002:a05:6a20:1a9b:b0:d6:e295:7dbd with SMTP id ci27-20020a056a201a9b00b000d6e2957dbdmr6665150pzb.28.1681324625201; Wed, 12 Apr 2023 11:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681324625; cv=none; d=google.com; s=arc-20160816; b=Dbpl8geHdNXg55lLGxiCaQHDVUI42Wiwpefc5Uf5Dlw5p8/S1GhGo0nbJlpenaeYuK Y8ZFwwzi8a+QaIgj8PEOwYEJ2/4sRLSB7GcIuhLrrrf5wMFintZtyFCZ9mMjeg5HcKjy vowpoQzT577r5AR3Mz2DHGjdcPRM4XKNG3fDxBsZbN9WJ/S3QCsyVWbTuVJNdCRCu+Ni CL5gG7NAgRZ4XSR2U3jjSRvg9OfYe16h5oSP+nNPh1wLYd9JV230XCwOf4z2JoqIkJhV F6cblRjO319EU9NgELcy3EDH+JaMAykMgdhfk0xjH91witNpws8TyvtzVh2FAKV1KgYC O46w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=MWy6sv13whg9JBQjJjQUf4sYt60lbACx2Lp0OS4PkY8=; b=x3sMQ6kSFp542CLKtjbnOx9CIBkj3Eg7ZaEZ+MdMGxqgpMtMeVYiML9a+VYR4CoqXU 5sNghlETUxaCDsEo8fWZMg4KldsV83EFhM4BGPJ6d2h0m2VaxU8t95ADA0X76VNiy22P qC5R1VJFH+mW9FZanCGVNM198b20qtAkyTYbb3cW8CJKFlpjWedI6ksh/XgrgOHBcwaQ zkn6Yi7/VDXV5dSCb/hoIeAeA+oZhfp8SxT5RYPUaAHVCBS9U+rAx0HRoAgWELe01G8c ZEoKlF2Vtfk3WpJ3naF3R7mSiIeaP+anxWZDLlhe5EIPXLj18QcnKFB0zdY//o2JD6xq E0xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gRrNwlQe; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w185-20020a6382c2000000b005186e9530f6si8038285pgd.13.2023.04.12.11.36.53; Wed, 12 Apr 2023 11:37:05 -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=@redhat.com header.s=mimecast20190719 header.b=gRrNwlQe; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229529AbjDLSao (ORCPT + 99 others); Wed, 12 Apr 2023 14:30:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjDLSan (ORCPT ); Wed, 12 Apr 2023 14:30:43 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A95C30E5 for ; Wed, 12 Apr 2023 11:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681324193; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MWy6sv13whg9JBQjJjQUf4sYt60lbACx2Lp0OS4PkY8=; b=gRrNwlQeI6qxbvAec29P0FT4QroeXxNPuqf3jshklLVRUPYM3W5fgzSsRUQYQ30WnopiWa d9gn82He5EKlGDNdd066Sn0bd6LlJqV6h5e/IGfXUJmJwfI7oV7NurJEi/W/ziwRaaFF8o JH+XsmtQtmGYVkGJ+8BYz5H5dfodqCg= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-618-iuGBN4_CMWWqzejEkV-1eA-1; Wed, 12 Apr 2023 14:29:48 -0400 X-MC-Unique: iuGBN4_CMWWqzejEkV-1eA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 648773C025C1; Wed, 12 Apr 2023 18:29:47 +0000 (UTC) Received: from [10.22.32.168] (unknown [10.22.32.168]) by smtp.corp.redhat.com (Postfix) with ESMTP id 88A5D40C6E70; Wed, 12 Apr 2023 18:29:46 +0000 (UTC) Message-ID: <168bb07f-844f-13f5-e4bd-77c2cec94046@redhat.com> Date: Wed, 12 Apr 2023 14:29:46 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v4 0/5] cgroup/cpuset: Fix CLONE_INTO_CGROUP problem & other issues Content-Language: en-US To: Tejun Heo Cc: Zefan Li , Johannes Weiner , Christian Brauner , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Juri Lelli , Dietmar Eggemann , =?UTF-8?Q?Michal_Koutn=c3=bd?= , Giuseppe Scrivano References: <20230411133601.2969636-1-longman@redhat.com> From: Waiman Long In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 4/12/23 14:26, Tejun Heo wrote: > On Tue, Apr 11, 2023 at 09:35:56AM -0400, Waiman Long wrote: >> v4: >> - Add missing rcu_read_lock/unlock to cpuset_cancel_fork() in patch 3. >> - Add patch 5 to reduce performance impact for the >> non-CLONE_INTO_CGROUP case. >> >> v3: >> - Update patches 2 & 3 to put task_cs() call under rcu_read_lock(). >> >> v2: >> - Drop v1 patch 3 >> - Add a new patch to fix an issue in cpuset_cancel_attach() and >> another patch to add cpuset_can_fork() and cpuset_cacnel_fork() >> methods. >> >> The first patch in this series fixes a problem in >> cpuset_cancel_attach(). Patches 2 and 3 fixes the CLONE_INTO_CGROUP >> problem in cpuset. Patch 4 is a minor fix. The last patch is a >> performance optimization patch for the non-CLONE_INTO_CGROUP case. > Applied 1-4 to cgroup/for-6.3-fixes w/ stable cc'd. Given that the fixes are > a bit involved, the breakages have been there for quite a while and the > cpuset code has changed quite a bit, backporting might not be trivial tho. > Let's see how that goes. I know stable backport won't be straight forward. I am planning to help in the backporting effort. Thanks for taking these into your cgroup tree. Cheers, Longman