Re: [RFC PATCH 1/2] sched: encapsulate priority changes in a sched_set_prio static function

Peter Zijlstra
2016-06-07T07:11:51Z

On Mon, Jun 06, 2016 at 09:47:52PM +0000, Mathieu Desnoyers wrote:
> >> +++ b/kernel/sched/core.c
> >> @@ -2230,6 +2230,11 @@ int sysctl_schedstats(struct ctl_table *table, int write,
> >> #endif
> >> #endif
> >>
> >> +static void sched_set_prio(struct task_struct *p, int prio)
> >> +{
> >> + p->prio = prio;
> >> +}

Urgh; so there's a bunch of patches to the PI code that I've been
ignoring that'll completely break all this.

Let me dig them up and get this all sorted.

Basically, looking at @prio is broken.