Re: [PATCH v6 3/3] sched/rt: Check to push the task when changing its affinity

2015-04-20 Thread Steven Rostedt
On Mon, 20 Apr 2015 16:22:48 +0800 Xunlei Pang wrote: > + rq = task_rq(p); > + > + if (new_weight > 1 && > + rt_task(rq->curr) && > + rq->rt.rt_nr_total > 1 && > + !test_tsk_need_resched(rq->curr)) { > + /* > + * We own p->pi_lock and rq->

[PATCH v6 3/3] sched/rt: Check to push the task when changing its affinity

2015-04-20 Thread Xunlei Pang
From: Xunlei Pang We may suffer from extra rt overload rq due to the affinity, so when the affinity of any runnable rt task is changed, we should check to trigger balancing, otherwise it will cause some unnecessary delayed real-time response. Unfortunately, current RT global scheduler does nothin