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 955A430E0E5 for ; Fri, 26 Dec 2025 20:48:16 +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=1766782100; cv=none; b=OhYYzX7kOlWF9BHDROLfQiE7ZyeFnMUtK6prb/0QZk5kVd/froWP+DacsKmCu44hn3QMXnLOfojru9pKI4+M/MP5e0m7c2lDmMtp8L+BVC1PJopD/b7/OWGdN6/5efcuOrE66y+pop4vu3RlnLJX9Fp/wrXGS6Tjw3MGFX4huCU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766782100; c=relaxed/simple; bh=EAgJ3664AENbLI1S3Tf4CRT9521EaZ0GR7ptn4Sh+c8=; h=From:Message-ID:Date:MIME-Version:Subject:To:Cc:References: In-Reply-To:Content-Type; b=Y8IwrH7NtTl+sGKeAkF2ANEsp5ua6bwbaTS4wmMzcVDnY8BsTyliA5V9FD3HeJ+UGzsq6GCfX7lzEDil4JtxRfw8AiDcOKvEre0Ht8fvHqgL7GcEe4Iaggbsl7a9xHv9ejVEsIFgpjiWPp05KxaqWj/29j2iILDHWrFh0bSE1Vo= 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=DLnarn3B; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=H7xOBbyA; 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="DLnarn3B"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="H7xOBbyA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1766782095; 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=RM8xUWiPB1W0MgA0qXcU7NgXtzuyc/5Zx2MgNVttglw=; b=DLnarn3BH+CkNjBqtnA4PlfQa2pRx452LmsR2yKVfImPgEWqREbr90ajKcY+7/81nTjaDA uL+/JfbW+rt0XYmrcJynRB2/Mok5Kw55llN1KMU6PBvuigJAdO2QqZLNDCI87cp1gBSFka eHeFdnrh48aRDOfXAN2vcOgsNle5H8A= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-618-2JqZ-5MdPQCJ4B0kqF2O4g-1; Fri, 26 Dec 2025 15:48:13 -0500 X-MC-Unique: 2JqZ-5MdPQCJ4B0kqF2O4g-1 X-Mimecast-MFC-AGG-ID: 2JqZ-5MdPQCJ4B0kqF2O4g_1766782093 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-8bbe16e0a34so1828356885a.1 for ; Fri, 26 Dec 2025 12:48:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1766782093; x=1767386893; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from:from:to :cc:subject:date:message-id:reply-to; bh=RM8xUWiPB1W0MgA0qXcU7NgXtzuyc/5Zx2MgNVttglw=; b=H7xOBbyAuo5hdzdfuFjgFSJZ4hdKURvGi1NPWv40M2tg6NlRjrmsFbHhMw3tV5nkjw 21MC7Yrw3tHLZ9VmUgdyhh7hSvxfxxARpwh+Uk8DJ8DLI7iZx13FAJiE1e9M/95u1U2l qwsFbPosRAUX8mrJnU1url6puTKNAhsEHKaJ/4wi5nJLcnwwZxIJxlM12HwnJvDVHQR1 P6O+1UFWitXQs6PvpkWFB0fxv3TvnT85XCvsEX+WMSClu2r5X2i1UPfdqeADLY1ic7nJ p4LDV7zr7XJ23AbLXSIBuuqyzg+DbchTq/ExVWX+NyII7irnnSJ6v5Fzxag8rCGzn0SK pG8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766782093; x=1767386893; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RM8xUWiPB1W0MgA0qXcU7NgXtzuyc/5Zx2MgNVttglw=; b=U3IQbMUHkS/klGTsG0c3OD81tA80pEf3u2+uCMdx6IAQ9BCHLvF3hsClegwRLLu69S gKjgl46q3/LVJS3JxaUaz8pVOxE0MVq590DrZuRNeZo0wfBnrwLF63AdkYP5ruOTpgD4 Nq5JymFcRO31p21MqGtPgnAOw8lG6+WOaIo8xfSXfvv1Dc+HxctplTpfc79wcJy2TvDs fz5WRQVVG0M7JDlR9/qYGZtyPImJzeuradOlOJSrCEFHEntrWhM1qf2yA8UNAL0ZpYMb sWCz7p3UaJIslkNflFHhT0ZBP1E2hx/G+EHv4OMXfZz3he23xrOQu2/Yrr28DoCwJgUy oj7g== X-Forwarded-Encrypted: i=1; AJvYcCVKHbKF4Gc0/OqrbfI9p+mvTjLziuXmrMpZdNnFsiVHredDQUKXizidx/YFt7ANgg7hjb3Ebmd8Kh96S90=@vger.kernel.org X-Gm-Message-State: AOJu0YwKk6G62PXjMMtAOQazuAMC6SRFG5oP73tY4CmY4EHEz4M7PT+w qxfmxlT9nLO5Jh84GxRXD85TRD5y+R8xBiFW0inLfFFahoX/fI5jXJEQEggfUpH66uuY90jgmKy OlJlMZGYDmcGx+vQv2fEgAJTghn3ievpH+u6XKGiFci9+fQ5mhwqvcJKhAjt1UIjvCg== X-Gm-Gg: AY/fxX7VUbc8SHsCNsVVk7w9a58jOs9kHuPOSRJ5hCtUZiCK7CKG8jSlmVtC1fwI8Rs 6kKevM3+j2KH/tE/IIxgdkZ6eeIB6MFYCwtDcYi70ZVbEY8GxxRA/1S67zrwvPQmRai+qGLpBQV TuC9Ruz5hhXCNxChTITdltxqLLSwU1ITiAGy5UaVSLXzz5B1XDTRWtjABNakFx/pOao3O2ntWjY spEZvb7SOFwB4PtZzlJ3ZB1evQeV20u40ozn7ch5KwjMHFP1DaApr5mjgU26jtjPjBRwntc1eiD B96rgV1PFBeIAsY6zRFjNKBIvJq7uwQ5Q1HJgzjvooGLk1X6TYZ3DIztaG/6KYPiLgUV+fJyyQU Cd4G0qJtZfT0w8ZjxrqCyBC9SBYh+abh0+rW0T/swOCA4DETRirjfLpmo X-Received: by 2002:a05:620a:4450:b0:8b2:f5b5:c9bf with SMTP id af79cd13be357-8bee76c8ecdmr4098089785a.22.1766782093290; Fri, 26 Dec 2025 12:48:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IH5vt35jXazmAlmHnLRQK7CDf0928bdO3E07iE5exs1VnuKt+dhmYfT9Sq8ULHkPw+Z5ZFmhA== X-Received: by 2002:a05:620a:4450:b0:8b2:f5b5:c9bf with SMTP id af79cd13be357-8bee76c8ecdmr4098087085a.22.1766782092880; Fri, 26 Dec 2025 12:48:12 -0800 (PST) Received: from ?IPV6:2601:600:947f:f020:85dc:d2b2:c5ee:e3c4? ([2601:600:947f:f020:85dc:d2b2:c5ee:e3c4]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-88d96ce4e23sm205030136d6.19.2025.12.26.12.48.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Dec 2025 12:48:12 -0800 (PST) From: Waiman Long X-Google-Original-From: Waiman Long Message-ID: Date: Fri, 26 Dec 2025 15:48:08 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 21/33] cpuset: Remove cpuset_cpu_is_isolated() To: Frederic Weisbecker , LKML Cc: =?UTF-8?Q?Michal_Koutn=C3=BD?= , Andrew Morton , Bjorn Helgaas , Catalin Marinas , Chen Ridong , Danilo Krummrich , "David S . Miller" , Eric Dumazet , Gabriele Monaco , Greg Kroah-Hartman , Ingo Molnar , Jakub Kicinski , Jens Axboe , Johannes Weiner , Lai Jiangshan , Marco Crivellari , Michal Hocko , Muchun Song , Paolo Abeni , Peter Zijlstra , Phil Auld , "Rafael J . Wysocki" , Roman Gushchin , Shakeel Butt , Simon Horman , Tejun Heo , Thomas Gleixner , Vlastimil Babka , Will Deacon , cgroups@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-block@vger.kernel.org, linux-mm@kvack.org, linux-pci@vger.kernel.org, netdev@vger.kernel.org References: <20251224134520.33231-1-frederic@kernel.org> <20251224134520.33231-22-frederic@kernel.org> Content-Language: en-US In-Reply-To: <20251224134520.33231-22-frederic@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/24/25 8:45 AM, Frederic Weisbecker wrote: > The set of cpuset isolated CPUs is now included in HK_TYPE_DOMAIN > housekeeping cpumask. There is no usecase left interested in just > checking what is isolated by cpuset and not by the isolcpus= kernel > boot parameter. > > Signed-off-by: Frederic Weisbecker > --- > include/linux/cpuset.h | 6 ------ > include/linux/sched/isolation.h | 4 +--- > kernel/cgroup/cpuset.c | 12 ------------ > 3 files changed, 1 insertion(+), 21 deletions(-) > > diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h > index 1c49ffd2ca9b..a4aa2f1767d0 100644 > --- a/include/linux/cpuset.h > +++ b/include/linux/cpuset.h > @@ -79,7 +79,6 @@ extern void cpuset_unlock(void); > extern void cpuset_cpus_allowed_locked(struct task_struct *p, struct cpumask *mask); > extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask); > extern bool cpuset_cpus_allowed_fallback(struct task_struct *p); > -extern bool cpuset_cpu_is_isolated(int cpu); > extern nodemask_t cpuset_mems_allowed(struct task_struct *p); > #define cpuset_current_mems_allowed (current->mems_allowed) > void cpuset_init_current_mems_allowed(void); > @@ -215,11 +214,6 @@ static inline bool cpuset_cpus_allowed_fallback(struct task_struct *p) > return false; > } > > -static inline bool cpuset_cpu_is_isolated(int cpu) > -{ > - return false; > -} > - > static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) > { > return node_possible_map; > diff --git a/include/linux/sched/isolation.h b/include/linux/sched/isolation.h > index 6842a1ba4d13..19905adbb705 100644 > --- a/include/linux/sched/isolation.h > +++ b/include/linux/sched/isolation.h > @@ -2,7 +2,6 @@ > #define _LINUX_SCHED_ISOLATION_H > > #include > -#include > #include > #include > > @@ -84,8 +83,7 @@ static inline bool housekeeping_cpu(int cpu, enum hk_type type) > static inline bool cpu_is_isolated(int cpu) > { > return !housekeeping_test_cpu(cpu, HK_TYPE_DOMAIN) || > - !housekeeping_test_cpu(cpu, HK_TYPE_TICK) || > - cpuset_cpu_is_isolated(cpu); > + !housekeeping_test_cpu(cpu, HK_TYPE_TICK); > } > > #endif /* _LINUX_SCHED_ISOLATION_H */ > diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c > index 25ac6c98113c..cd6119c02beb 100644 > --- a/kernel/cgroup/cpuset.c > +++ b/kernel/cgroup/cpuset.c > @@ -29,7 +29,6 @@ > #include > #include > #include > -#include > #include > #include > #include > @@ -1490,17 +1489,6 @@ static void update_isolation_cpumasks(void) > isolated_cpus_updating = false; > } > > -/** > - * cpuset_cpu_is_isolated - Check if the given CPU is isolated > - * @cpu: the CPU number to be checked > - * Return: true if CPU is used in an isolated partition, false otherwise > - */ > -bool cpuset_cpu_is_isolated(int cpu) > -{ > - return cpumask_test_cpu(cpu, isolated_cpus); > -} > -EXPORT_SYMBOL_GPL(cpuset_cpu_is_isolated); > - > /** > * rm_siblings_excl_cpus - Remove exclusive CPUs that are used by sibling cpusets > * @parent: Parent cpuset containing all siblings Reviewed-by: Waiman Long