diff options
Diffstat (limited to 'kernel/cgroup/cgroup.c')
-rw-r--r-- | kernel/cgroup/cgroup.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index d6551cd45238..44857278eb8a 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c | |||
@@ -2311,6 +2311,14 @@ out_release_tset: | |||
2311 | list_del_init(&cset->mg_node); | 2311 | list_del_init(&cset->mg_node); |
2312 | } | 2312 | } |
2313 | spin_unlock_irq(&css_set_lock); | 2313 | spin_unlock_irq(&css_set_lock); |
2314 | |||
2315 | /* | ||
2316 | * Re-initialize the cgroup_taskset structure in case it is reused | ||
2317 | * again in another cgroup_migrate_add_task()/cgroup_migrate_execute() | ||
2318 | * iteration. | ||
2319 | */ | ||
2320 | tset->nr_tasks = 0; | ||
2321 | tset->csets = &tset->src_csets; | ||
2314 | return ret; | 2322 | return ret; |
2315 | } | 2323 | } |
2316 | 2324 | ||