Commit fc9cfd4
committed
cgroup/cpuset: Remove the unnecessary css_get/put() in cpuset_partition_write()
JIRA: https://issues.redhat.com/browse/RHEL-107751
commit 87eba5b
Author: Waiman Long <longman@redhat.com>
Date: Wed, 6 Aug 2025 13:24:30 -0400
cgroup/cpuset: Remove the unnecessary css_get/put() in cpuset_partition_write()
The css_get/put() calls in cpuset_partition_write() are unnecessary as
an active reference of the kernfs node will be taken which will prevent
its removal and guarantee the existence of the css. Only the online
check is needed.
Signed-off-by: Waiman Long <longman@redhat.com>
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Waiman Long <longman@redhat.com>1 parent a465753 commit fc9cfd4
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3358 | 3358 | | |
3359 | 3359 | | |
3360 | 3360 | | |
3361 | | - | |
3362 | 3361 | | |
3363 | 3362 | | |
3364 | 3363 | | |
3365 | 3364 | | |
3366 | 3365 | | |
3367 | 3366 | | |
3368 | | - | |
3369 | 3367 | | |
3370 | 3368 | | |
3371 | 3369 | | |
| |||
0 commit comments