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

cfq-iosched: fix RCU problem in cfq_cic_lookup()



cfq_cic_lookup() needs to properly protect ioc->ioc_data before
dereferencing it and also exclude updaters of ioc->ioc_data as well.

Also add a number of comments documenting why the existing RCU usage
is OK.

Thanks a lot to "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> for
review and comments!

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