lkml.org 
[lkml]   [2015]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched: Update task->on_rq when tasks are moving between runqueues
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 task is moving between rqs task->on_rq state should be
> TASK_ON_RQ_MIGRATING

Only when not holding both rq locks..


\
 
 \ /
  Last update: 2015-10-25 11:21    [W:0.100 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site