• Jens Axboe's avatar
    cfq-iosched: fix RCU problem in cfq_cic_lookup() · d6de8be7
    Jens Axboe authored
    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>
    d6de8be7
cfq-iosched.c 54.7 KB