From: Oleg Nesterov Date: Mon, 15 Mar 2010 09:10:14 +0000 (+0100) Subject: sched: move_task_off_dead_cpu(): Remove retry logic X-Git-Tag: v2.6.35-rc1~521^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1804d547dc098363443667609c272d1e4d15ee8;p=pandora-kernel.git sched: move_task_off_dead_cpu(): Remove retry logic The previous patch preserved the retry logic, but it looks unneeded. __migrate_task() can only fail if we raced with migration after we dropped the lock, but in this case the caller of set_cpus_allowed/etc must initiate migration itself if ->on_rq == T. We already fixed p->cpus_allowed, the changes in active/online masks must be visible to racer, it should migrate the task to online cpu correctly. Signed-off-by: Oleg Nesterov Signed-off-by: Peter Zijlstra LKML-Reference: <20100315091014.GA9138@redhat.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed