Commit 87eba5b
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>1 parent 150e298 commit 87eba5b
1 file changed
Lines changed: 0 additions & 2 deletions
| 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