From: Thomas Gleixner Date: Wed, 9 Dec 2009 08:32:03 +0000 (+0100) Subject: sched: Protect sched_rr_get_param() access to task->sched_class X-Git-Tag: v2.6.33-rc1~298^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dba091b9e3522b9d32fc9975e48d3b69633b45f0;p=pandora-kernel.git sched: Protect sched_rr_get_param() access to task->sched_class sched_rr_get_param calls task->sched_class->get_rr_interval(task) without protection against a concurrent sched_setscheduler() call which modifies task->sched_class. Serialize the access with task_rq_lock(task) and hand the rq pointer into get_rr_interval() as it's needed at least in the sched_fair implementation. Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed