Skip to content
Commit 5f45c695 authored by Jens Axboe's avatar Jens Axboe
Browse files

cfq-iosched: read_lock() does not always imply rcu_read_lock()



For some configurations of CONFIG_PREEMPT that is not true. So
get rid of __call_for_each_cic() and always uses the explicitly
rcu_read_lock() protected call_for_each_cic() instead.

This fixes a potential bug related to IO scheduler removal or
online switching.

Thanks to Paul McKenney for clarifying this.

Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
parent bd900d45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment