Skip to content
  • Jens Axboe's avatar
    as-iosched: properly protect ioc_gone and ioc count · 863fddcb
    Jens Axboe authored
    
    
    If we have multiple tasks freeing io contexts when as-iosched
    is being unloaded, we could complete() ioc_gone twice. Fix that by
    protecting ioc_gone complete() and clearing with a spinlock for
    just that purpose. Doesn't matter from a performance perspective,
    since it'll only enter that path when ioc_gone != NULL (when as-iosched
    is being rmmod'ed).
    
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    863fddcb