Messages in this thread | | | Date | Thu, 2 Oct 2014 11:24:28 +0200 | From | Peter Zijlstra <> | Subject | Re: [PATCH] sched: Use RCU read lock on all calls to dl_bw_of() |
| |
On Tue, Sep 30, 2014 at 12:23:37PM +0400, Kirill Tkhai wrote: > [PATCH]sched: Use dl_bw_of() under preempt_disable() > > 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(). > > We choose preempt_disable()/preempt_enable() like in other places > where rq->rd is used.
I changed it to rcu_read_lock_sched(), but no biggie, thanks!
| |