lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151025100924.GP2508@worktop.programming.kicks-ass.net>
Date:	Sun, 25 Oct 2015 11:09:24 +0100
From:	Peter Zijlstra <peterz@...radead.org>
To:	Olav Haugan <ohaugan@...eaurora.org>
Cc:	mingo@...hat.com, linux-kernel@...r.kernel.org,
	linux-arm-msm@...r.kernel.org
Subject: Re: [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..
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ