sched/core: Validate rq_clock*() serialization
authorPeter Zijlstra <peterz@infradead.org>
Mon, 5 Jan 2015 10:18:10 +0000 (11:18 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 14 Jan 2015 12:34:19 +0000 (13:34 +0100)
commitcebde6d681aa45f96111cfcffc1544cf2a0454ff
tree87cfce57adc5dde39b37ee7bc2e665d572f8117a
parent1b537c7d1e58c761212a193085f9049b58f672e6
sched/core: Validate rq_clock*() serialization

rq->clock{,_task} are serialized by rq->lock, verify this.

One immediate fail is the usage in scale_rt_capability, so 'annotate'
that for now, there's more 'funny' there. Maybe change rq->lock into a
raw_seqlock_t?

(Only 32-bit is affected)

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20150105103554.361872747@infradead.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: umgwanakikbuti@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c
kernel/sched/sched.h