Lines Matching refs:src_cset

2571 void cgroup_migrate_add_src(struct css_set *src_cset,  in cgroup_migrate_add_src()  argument
2585 if (src_cset->dead) in cgroup_migrate_add_src()
2588 src_cgrp = cset_cgroup_from_root(src_cset, dst_cgrp->root); in cgroup_migrate_add_src()
2590 if (!list_empty(&src_cset->mg_preload_node)) in cgroup_migrate_add_src()
2593 WARN_ON(src_cset->mg_src_cgrp); in cgroup_migrate_add_src()
2594 WARN_ON(src_cset->mg_dst_cgrp); in cgroup_migrate_add_src()
2595 WARN_ON(!list_empty(&src_cset->mg_tasks)); in cgroup_migrate_add_src()
2596 WARN_ON(!list_empty(&src_cset->mg_node)); in cgroup_migrate_add_src()
2598 src_cset->mg_src_cgrp = src_cgrp; in cgroup_migrate_add_src()
2599 src_cset->mg_dst_cgrp = dst_cgrp; in cgroup_migrate_add_src()
2600 get_css_set(src_cset); in cgroup_migrate_add_src()
2601 list_add_tail(&src_cset->mg_preload_node, &mgctx->preloaded_src_csets); in cgroup_migrate_add_src()
2620 struct css_set *src_cset, *tmp_cset; in cgroup_migrate_prepare_dst() local
2625 list_for_each_entry_safe(src_cset, tmp_cset, &mgctx->preloaded_src_csets, in cgroup_migrate_prepare_dst()
2631 dst_cset = find_css_set(src_cset, src_cset->mg_dst_cgrp); in cgroup_migrate_prepare_dst()
2635 WARN_ON_ONCE(src_cset->mg_dst_cset || dst_cset->mg_dst_cset); in cgroup_migrate_prepare_dst()
2642 if (src_cset == dst_cset) { in cgroup_migrate_prepare_dst()
2643 src_cset->mg_src_cgrp = NULL; in cgroup_migrate_prepare_dst()
2644 src_cset->mg_dst_cgrp = NULL; in cgroup_migrate_prepare_dst()
2645 list_del_init(&src_cset->mg_preload_node); in cgroup_migrate_prepare_dst()
2646 put_css_set(src_cset); in cgroup_migrate_prepare_dst()
2651 src_cset->mg_dst_cset = dst_cset; in cgroup_migrate_prepare_dst()
2660 if (src_cset->subsys[ssid] != dst_cset->subsys[ssid]) in cgroup_migrate_prepare_dst()
2877 struct css_set *src_cset; in cgroup_update_dfl_csses() local
2900 list_for_each_entry(src_cset, &mgctx.preloaded_src_csets, mg_preload_node) { in cgroup_update_dfl_csses()
2904 list_for_each_entry_safe(task, ntask, &src_cset->tasks, cg_list) in cgroup_update_dfl_csses()