Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6284663rwl; Tue, 4 Apr 2023 10:12:09 -0700 (PDT) X-Google-Smtp-Source: AKy350Zoqcabq3So3n6FrXHxGBQDQymXSQOATEzpPKnvB4Ajj06OrgFeSWPPh2CBZq4fgV9u+D3b X-Received: by 2002:a17:902:dace:b0:1a2:769b:3d61 with SMTP id q14-20020a170902dace00b001a2769b3d61mr132101plx.6.1680628329459; Tue, 04 Apr 2023 10:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680628329; cv=none; d=google.com; s=arc-20160816; b=uSiLTJMbS0WVFE6j0/+v5dngwgGwU1twi6Xz0MVHORdx+tbf4zBnBejzp1oUTgu6Y6 v6m0OH4xgmkljWGVrwpT/QFx5YImwrCw1ee2yq9YP48D4e2Bv9160nJ/SSzBDDsWKfos c31KXC+NT2oOFhz/SlqCOveWW408dCCgrB8kcRy9wtDDTu4x0xAbjqKPiCRGDaN0LH7R GMEyAt9Gjm7oPGl2g1ZVONd9uW4ShTgzYp7JN7W+U8gqBx5vZ+2CKqgciLl/p+TLoSWH FlDxV/uHfDIbwts0quhJ627Z2PklZ681kAp35oM7VRxpJDkRMOTukBxw10opMII4iS4S Z5nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=cDBp1UWkXLcCy6UhLlPWhWDI0u/2pUwKDhHAxjWms3Y=; b=n/u5ggZIupJ7Vso+xtLAalNFRXLcG3QfEMm6i8xMXNKqma+b+KYQImE1oCu+UGkt3D fjkTILAxej1k866yT1q0BACSXlvfEBUUgaxqLYsvnyORkox0L6XUs18SCY8/fLfXjpEr p2T8/4wc2rGzvHFZWnzMftYrXeLPwR6n6YOk0VcrxOpX2RKiaZMNGjPdWge5VxUGJB2Z JqZYG8JJUpc47rs/CaBq/0uycAnMJrTTaLlOIGAVmxeNAHWr/eyyxdEq8siVmdGbdZtL gEDfa7chdWMpywVcVWiNExvh1uhIrX/scs0Re0OwX7KHOa+EFLiO3pTf9/YTprdIqIh3 7n8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Bv0ypbZ2; 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 q6-20020a17090311c600b0019ac7319ecdsi10987467plh.409.2023.04.04.10.11.49; Tue, 04 Apr 2023 10:12:09 -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=Bv0ypbZ2; 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 S235720AbjDDRHP (ORCPT + 99 others); Tue, 4 Apr 2023 13:07:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235472AbjDDRHK (ORCPT ); Tue, 4 Apr 2023 13:07:10 -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 558B34488 for ; Tue, 4 Apr 2023 10:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680627985; 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; bh=cDBp1UWkXLcCy6UhLlPWhWDI0u/2pUwKDhHAxjWms3Y=; b=Bv0ypbZ21dmNjhjIE7aeNbi/it7+RT4jKa2C1Ci9+2BWBU5MJdg+pOCIUFh4+J93SpMj08 fnY3aVYGmzVIsCxrHdfvZxSV/fVNwu704D6HAtufdK3hgASElEUSU9FERhrQGqkJMPv8WG uKf5VqnWUqzuaonG04Rr/nBT1qHdZsU= 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-612--IiRDVs0PvmFeVU0KT0WkA-1; Tue, 04 Apr 2023 13:06:22 -0400 X-MC-Unique: -IiRDVs0PvmFeVU0KT0WkA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8DA5B38601A9; Tue, 4 Apr 2023 17:06:16 +0000 (UTC) Received: from llong.com (unknown [10.22.32.153]) by smtp.corp.redhat.com (Postfix) with ESMTP id A728C440D6; Tue, 4 Apr 2023 17:06:15 +0000 (UTC) From: Waiman Long To: Tejun Heo , Zefan Li , Johannes Weiner , Christian Brauner Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Juri Lelli , Dietmar Eggemann , =?UTF-8?q?Michal=20Koutn=C3=BD?= , gscrivan@redhat.com, Waiman Long Subject: [PATCH v2 0/4] cgroup/cpuset: Fix CLONE_INTO_CGROUP problem & other issues Date: Tue, 4 Apr 2023 13:05:42 -0400 Message-Id: <20230404170546.2585050-1-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 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. The last one is a minor fix. Waiman Long (4): cgroup/cpuset: Wake up cpuset_attach_wq tasks in cpuset_cancel_attach() cgroup/cpuset: Make cpuset_fork() handle CLONE_INTO_CGROUP properly cgroup/cpuset: Add cpuset_can_fork() and cpuset_cancel_fork() methods cgroup/cpuset: Make cpuset_attach_task() skip subpartitions CPUs for top_cpuset kernel/cgroup/cpuset.c | 150 ++++++++++++++++++++++++++++++++--------- 1 file changed, 118 insertions(+), 32 deletions(-) -- 2.31.1