Re: [PATCH] sched: Update task->on_rq when tasks are moving between runqueues

2015-11-02 Thread Paul Turner
On Wed, Oct 28, 2015 at 6:58 PM, Peter Zijlstra wrote: > On Wed, Oct 28, 2015 at 05:57:10PM -0700, Olav Haugan wrote: >> On 15-10-25 11:09:24, Peter Zijlstra wrote: >> > On Sat, Oct 24, 2015 at 11:01:02AM -0700, Olav Haugan wrote: >> > > Task->on_rq has three states: >> > > 0 - Task is not on ru

Re: [PATCH] sched: Update task->on_rq when tasks are moving between runqueues

2015-10-31 Thread Peter Zijlstra
On Wed, Oct 28, 2015 at 05:57:10PM -0700, Olav Haugan wrote: > On 15-10-25 11:09:24, Peter Zijlstra wrote: > > On Sat, Oct 24, 2015 at 11:01:02AM -0700, Olav Haugan wrote: > > > Task->on_rq has three states: > > > 0 - Task is not on runqueue (rq) > > > 1 (TASK_ON_RQ_QUEUED) - Task is on rq > >

Re: [PATCH] sched: Update task->on_rq when tasks are moving between runqueues

2015-10-28 Thread Olav Haugan
On 15-10-25 11:09:24, Peter Zijlstra wrote: > On Sat, Oct 24, 2015 at 11:01:02AM -0700, Olav Haugan wrote: > > Task->on_rq has three states: > > 0 - Task is not on runqueue (rq) > > 1 (TASK_ON_RQ_QUEUED) - Task is on rq > > 2 (TASK_ON_RQ_MIGRATING) - Task is on rq but in the process of

Re: [PATCH] sched: Update task->on_rq when tasks are moving between runqueues

2015-10-25 Thread Peter Zijlstra
On Sat, Oct 24, 2015 at 11:01:02AM -0700, Olav Haugan wrote: > Task->on_rq has three states: > 0 - Task is not on runqueue (rq) > 1 (TASK_ON_RQ_QUEUED) - Task is on rq > 2 (TASK_ON_RQ_MIGRATING) - Task is on rq but in the process of being > migrated to another rq > > When a

[PATCH] sched: Update task->on_rq when tasks are moving between runqueues

2015-10-24 Thread Olav Haugan
Task->on_rq has three states: 0 - Task is not on runqueue (rq) 1 (TASK_ON_RQ_QUEUED) - Task is on rq 2 (TASK_ON_RQ_MIGRATING) - Task is on rq but in the process of being migrated to another rq When a task is moving between rqs task->on_rq state should be TASK_ON_RQ_