From: Mike Galbraith Date: Wed, 27 Jul 2011 15:14:55 +0000 (+0200) Subject: sched: fix broken SCHED_RESET_ON_FORK handling X-Git-Tag: v3.2-rc1~161^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c350a04efd1c89cd256b2abc8f07a21d0d53ff24;p=pandora-kernel.git sched: fix broken SCHED_RESET_ON_FORK handling Setting child->prio = current->normal_prio _after_ SCHED_RESET_ON_FORK has been handled for an RT parent gives birth to a deranged mutant child with non-RT policy, but RT prio and sched_class. Move PI leakage protection up, always set priorities and weight, and if the child is leaving RT class, reset rt_priority to the proper value. Signed-off-by: Mike Galbraith Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1311779695.8691.2.camel@marge.simson.net Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed