The patch titled freezer_cg: remove redundant check in freezer_can_attach() has been removed from the -mm tree. Its filename was freezer_cg-remove-redundant-check-in-freezer_can_attach.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: freezer_cg: remove redundant check in freezer_can_attach() From: Li Zefan <lizf@xxxxxxxxxxxxxx> It is sufficient to check if @task is frozen, and no need to check if the original freezer is frozen. Signed-off-by: Li Zefan <lizf@xxxxxxxxxxxxxx> Acked-by: Cedric Le Goater <clg@xxxxxxxxxx> Acked-by: Matt Helsley <matthltc@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/cgroup_freezer.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff -puN kernel/cgroup_freezer.c~freezer_cg-remove-redundant-check-in-freezer_can_attach kernel/cgroup_freezer.c --- a/kernel/cgroup_freezer.c~freezer_cg-remove-redundant-check-in-freezer_can_attach +++ a/kernel/cgroup_freezer.c @@ -162,9 +162,13 @@ static int freezer_can_attach(struct cgr struct task_struct *task) { struct freezer *freezer; - int retval; - /* Anything frozen can't move or be moved to/from */ + /* + * Anything frozen can't move or be moved to/from. + * + * Since orig_freezer->state == FROZEN means that @task has been + * frozen, so it's sufficient to check the latter condition. + */ if (is_task_frozen_enough(task)) return -EBUSY; @@ -173,13 +177,7 @@ static int freezer_can_attach(struct cgr if (freezer->state == CGROUP_FROZEN) return -EBUSY; - retval = 0; - task_lock(task); - freezer = task_freezer(task); - if (freezer->state == CGROUP_FROZEN) - retval = -EBUSY; - task_unlock(task); - return retval; + return 0; } static void freezer_fork(struct cgroup_subsys *ss, struct task_struct *task) _ Patches currently in -mm which might be from lizf@xxxxxxxxxxxxxx are cgroups-fix-invalid-cgrp-dentry-before-cgroup-has-been-completely-removed.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html