From: Tejun Heo Date: Mon, 16 Jan 2017 00:03:40 +0000 (-0500) Subject: cgroup: cosmetic update to cgroup_taskset_add() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d8ebf5191d7fdf81ba34a7c3d726b99c34918030;p=linux.git cgroup: cosmetic update to cgroup_taskset_add() cgroup_taskset_add() was using list_add_tail() when for source csets but list_move_tail() for destination. As the operations are gated by list_empty() test, list_move_tail() is equivalent to list_add_tail() here. Use list_add_tail() too for destination csets too. This doesn't cause any functional changes. Signed-off-by: Tejun Heo Acked-by: Zefan Li --- diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index d9d82e96d67f0..aed492e907c1b 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -1980,8 +1980,8 @@ static void cgroup_taskset_add(struct task_struct *task, if (list_empty(&cset->mg_node)) list_add_tail(&cset->mg_node, &tset->src_csets); if (list_empty(&cset->mg_dst_cset->mg_node)) - list_move_tail(&cset->mg_dst_cset->mg_node, - &tset->dst_csets); + list_add_tail(&cset->mg_dst_cset->mg_node, + &tset->dst_csets); } /**