Lines Matching refs:tset
2492 mgctx->tset.nr_tasks++; in cgroup_migrate_add_task()
2497 &mgctx->tset.src_csets); in cgroup_migrate_add_task()
2500 &mgctx->tset.dst_csets); in cgroup_migrate_add_task()
2510 struct task_struct *cgroup_taskset_first(struct cgroup_taskset *tset, in cgroup_taskset_first() argument
2513 tset->cur_cset = list_first_entry(tset->csets, struct css_set, mg_node); in cgroup_taskset_first()
2514 tset->cur_task = NULL; in cgroup_taskset_first()
2516 return cgroup_taskset_next(tset, dst_cssp); in cgroup_taskset_first()
2528 struct task_struct *cgroup_taskset_next(struct cgroup_taskset *tset, in cgroup_taskset_next() argument
2531 struct css_set *cset = tset->cur_cset; in cgroup_taskset_next()
2532 struct task_struct *task = tset->cur_task; in cgroup_taskset_next()
2534 while (CGROUP_HAS_SUBSYS_CONFIG && &cset->mg_node != tset->csets) { in cgroup_taskset_next()
2542 tset->cur_cset = cset; in cgroup_taskset_next()
2543 tset->cur_task = task; in cgroup_taskset_next()
2552 *dst_cssp = cset->mg_dst_cset->subsys[tset->ssid]; in cgroup_taskset_next()
2554 *dst_cssp = cset->subsys[tset->ssid]; in cgroup_taskset_next()
2578 struct cgroup_taskset *tset = &mgctx->tset; in cgroup_migrate_execute() local
2585 if (tset->nr_tasks) { in cgroup_migrate_execute()
2588 tset->ssid = ssid; in cgroup_migrate_execute()
2589 ret = ss->can_attach(tset); in cgroup_migrate_execute()
2604 list_for_each_entry(cset, &tset->src_csets, mg_node) { in cgroup_migrate_execute()
2630 tset->csets = &tset->dst_csets; in cgroup_migrate_execute()
2632 if (tset->nr_tasks) { in cgroup_migrate_execute()
2635 tset->ssid = ssid; in cgroup_migrate_execute()
2636 trace_android_vh_cgroup_attach(ss, tset); in cgroup_migrate_execute()
2637 ss->attach(tset); in cgroup_migrate_execute()
2646 if (tset->nr_tasks) { in cgroup_migrate_execute()
2651 tset->ssid = ssid; in cgroup_migrate_execute()
2652 ss->cancel_attach(tset); in cgroup_migrate_execute()
2658 list_splice_init(&tset->dst_csets, &tset->src_csets); in cgroup_migrate_execute()
2659 list_for_each_entry_safe(cset, tmp_cset, &tset->src_csets, mg_node) { in cgroup_migrate_execute()
2670 tset->nr_tasks = 0; in cgroup_migrate_execute()
2671 tset->csets = &tset->src_csets; in cgroup_migrate_execute()