]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cgroup/cpuset: Remove the unnecessary css_get/put() in cpuset_partition_write()
authorWaiman Long <longman@redhat.com>
Wed, 6 Aug 2025 17:24:30 +0000 (13:24 -0400)
committerTejun Heo <tj@kernel.org>
Sat, 9 Aug 2025 18:42:47 +0000 (08:42 -1000)
commit87eba5bc5ab1d99e31c9d3b2c386187da94a5ab1
tree82860391569b4c5eb161c512a2603b6a21bf8882
parent150e298ae0ccbecff2357a72fbabd80f8849ea6e
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>
kernel/cgroup/cpuset.c