sched/core: Avoid double update_rq_clock() in move_queued_task()
authorPeter Zijlstra <peterz@infradead.org>
Wed, 5 Oct 2016 15:59:32 +0000 (17:59 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 16 Mar 2017 08:46:26 +0000 (09:46 +0100)
commit15ff991e8047561bb4a4e800ec60f60939be5fd4
tree1a1fc00322da61ae37fcfd5288d7d7b4770ceefc
parent5704ac0ae7f59581a264f45ddfc0ab4235aa052a
sched/core: Avoid double update_rq_clock() in move_queued_task()

Address this case:

  WARNING: CPU: 0 PID: 2070 at ../kernel/sched/core.c:109 update_rq_clock+0x74/0x80
  rq->clock_update_flags & RQCF_UPDATED

  Call Trace:
  update_rq_clock()
  move_queued_task()
  __set_cpus_allowed_ptr()
  ...

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c