From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB46E2853E0 for ; Sat, 11 Jul 2026 02:06:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783735596; cv=none; b=UXS1H6CmliaBxyNc+M+1dKhemuIXm5K9ebxe3AOp5o8MSwlyRRsqPKKiiAyAFZnHIWhYTdHBfPv6Gm7MsQ69ALEfajdPrbwS/9e7TDE7x5rjYQ1BHNLjmpfCM0UBckiyVBq5245J4Yl52REZSf1tWPj8k0B8s2oIG7j8DnyO1yQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783735596; c=relaxed/simple; bh=uWvFI/eVIIM5pKQO1Td7QghFFLWSDsZw5+VMwnMK/m0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=dv9GjWuuYl5b402n/7QgUeM+/JWuUE01QNZhs3IdnP+Cp9iP/jQM0fxtDvTEXB8LXQbXJhwygO2pqw7mvlVNEOoKbcIsQ1LYQnZH9kIH+IZ5VcpPJ014/a1ct5u9R8c9ZfhU4S8u2DmpEB2rlDJ3e3Qe803q0v1ZftVUVQ2dE14= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=QvCNRxiR; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QvCNRxiR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783735594; 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=/NztoyCLvg4UiSlfkQ5LeMJ1fB1cR0kulNLdHmCoJYw=; b=QvCNRxiRba4OYQcDagEyjfs7MdPuxaJYNcWrd/pfrlRngS0VdrO/IHWw+I2yE4+nae3M+2 L0GgwjSv0l5HQnnxYIeA4nDWGz4HLxJ4cQVRin4XKjx9Ha/NHdXd6jMkjcFE+jVleYnd1A YVyjYmPzotL+qt9WVslBqFVeabB43PI= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-680-sRNboGEoNdmNjZ9dQnkZbQ-1; Fri, 10 Jul 2026 22:06:28 -0400 X-MC-Unique: sRNboGEoNdmNjZ9dQnkZbQ-1 X-Mimecast-MFC-AGG-ID: sRNboGEoNdmNjZ9dQnkZbQ_1783735587 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E9F681800639; Sat, 11 Jul 2026 02:06:26 +0000 (UTC) Received: from llong-thinkpadp1gen5.rmtusnh.csb (unknown [10.22.88.253]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id F2032195419F; Sat, 11 Jul 2026 02:06:24 +0000 (UTC) From: Waiman Long To: Ridong Chen , Tejun Heo , Johannes Weiner , =?UTF-8?q?Michal=20Koutn=C3=BD?= , Shuah Khan Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Waiman Long Subject: [PATCH-next 0/3] cgroup/cpuset: Support multiple destination cpusets for cpuset_*attach() Date: Fri, 10 Jul 2026 22:05:37 -0400 Message-ID: <20260711020540.176740-1-longman@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 This is a follow-up patch series to [1] to properly handle a special case for cpuset task migration operation where the source and destination cpusets are the same. Patch 1 handle this special cases by skipping tasks are not migrating with respect to cpuset. Patch 2 enables cpuset_*attach() to handle the case where thare many destination cpusets which when a cpuset controller is enabled. Patch 3 adds a new test case into test_cpuset to test proper handling of cpu affinity when cpuset controller is disabled. [1] https://lore.kernel.org/lkml/20260702214757.579012-1-longman@redhat.com Michal Koutný (1): selftests/cgroup: Add test for cpuset affinity on controller disable Waiman Long (2): cgroup/cpuset: Handle the special case of non-moving tasks in cpuset_can_attach() cgroup/cpuset: Support multiple destination cpusets for cpuset_*attach() kernel/cgroup/cpuset.c | 116 +++++---- tools/testing/selftests/cgroup/test_cpuset.c | 243 +++++++++++++++++++ 2 files changed, 310 insertions(+), 49 deletions(-) -- 2.55.0