[RFC PATCH -v4 21/22] cpuset: remove prs_err clear when notify_partition_change
From: Ridong Chen
Date: Sun Nov 01 2026 - 06:45:43 EST
From: Chen Ridong <chenridong@xxxxxxxxxx>
The prs_err should be properly set when partition state is set, it
doesn't have to be reset in notify_partition_change(), just remove it.
Signed-off-by: Chen Ridong <chenridong@xxxxxxxxxx>
Signed-off-by: Ridong Chen <chenridong@xxxxxxxxxx>
---
kernel/cgroup/cpuset.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
index 29bce718ef92..4fd8b0025a5a 100644
--- a/kernel/cgroup/cpuset.c
+++ b/kernel/cgroup/cpuset.c
@@ -262,10 +262,6 @@ static inline void notify_partition_change(struct cpuset *cs, int old_prs)
if (old_prs == cs->partition_root_state)
return;
cgroup_file_notify(&cs->partition_file);
-
- /* Reset prs_err if not invalid */
- if (is_partition_valid(cs))
- WRITE_ONCE(cs->prs_err, PERR_NONE);
}
/*
--
2.34.1