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

cfq-iosched: properly protect ioc_gone and ioc count



If we have multiple tasks freeing cfq_io_contexts when cfq-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 cfq-iosched
is being rmmod'ed).

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent c461a973
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