mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-25 17:53:34 -05:00
cgroup: don't use idr_remove_all()
idr_destroy() can destroy idr by itself and idr_remove_all() is being deprecated. Drop its usage. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
644e1b90ef
commit
c897ff68be
1 changed files with 1 additions and 3 deletions
|
@ -4618,10 +4618,8 @@ void cgroup_unload_subsys(struct cgroup_subsys *ss)
|
|||
offline_css(ss, dummytop);
|
||||
ss->active = 0;
|
||||
|
||||
if (ss->use_id) {
|
||||
idr_remove_all(&ss->idr);
|
||||
if (ss->use_id)
|
||||
idr_destroy(&ss->idr);
|
||||
}
|
||||
|
||||
/* deassign the subsys_id */
|
||||
subsys[ss->subsys_id] = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue