Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1255331

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

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH] sched: Update task->on_rq when tasks are moving between runqueues
Date 2015-10-25 11:10 +0100
Message-ID <qnqpr-1gk-5@gated-at.bofh.it> (permalink)
References <qnbqp-7Ys-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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..
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] sched: Update task->on_rq when tasks are moving between runqueues Olav Haugan <ohaugan@codeaurora.org> - 2015-10-24 20:10 +0200
  Re: [PATCH] sched: Update task->on_rq when tasks are moving between  runqueues Peter Zijlstra <peterz@infradead.org> - 2015-10-25 11:10 +0100
    Re: [PATCH] sched: Update task->on_rq when tasks are moving between  runqueues Olav Haugan <ohaugan@codeaurora.org> - 2015-10-29 02:00 +0100

csiph-web