]> git.baikalelectronics.ru Git - kernel.git/commit
sched/dl: Use dl_bw_of() under rcu_read_lock_sched()
authorKirill Tkhai <ktkhai@parallels.com>
Tue, 30 Sep 2014 08:23:37 +0000 (12:23 +0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 3 Oct 2014 03:46:58 +0000 (05:46 +0200)
commitfaa14a003ed931c0891f6fd8af4aa0973d821334
tree0733366372b97784b82acafa6d0fc0a57f62e27b
parentb6347d77e01681290011222815312396851e32d1
sched/dl: Use dl_bw_of() under rcu_read_lock_sched()

rq->rd is freed using call_rcu_sched(), so rcu_read_lock() to access it
is not enough. We should use either rcu_read_lock_sched() or preempt_disable().

Reported-by: Sasha Levin <sasha.levin@oracle.com>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Kirill Tkhai <ktkhai@parallels.com
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Fixes: c9e4d41a8e7b "sched: Use dl_bw_of() under RCU read lock"
Link: http://lkml.kernel.org/r/1412065417.20287.24.camel@tkhai
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c