summaryrefslogtreecommitdiff
path: root/lib/locking-selftest.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-05-29 07:32:08 (GMT)
committerJens Axboe <jens.axboe@oracle.com>2008-07-03 11:21:12 (GMT)
commit9a11b4ed0e7c44bca7c939aa544c3c47aae40c12 (patch)
tree438312dda8a63e0704c2ddbdea958f0d729c6c7e /lib/locking-selftest.c
parentc461a973118346d5c103aaaddd62e53939fd7c67 (diff)
downloadlinux-fsl-qoriq-9a11b4ed0e7c44bca7c939aa544c3c47aae40c12.tar.xz
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: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'lib/locking-selftest.c')
0 files changed, 0 insertions, 0 deletions