From: Jens Axboe Date: Thu, 29 May 2008 07:35:22 +0000 (+0200) Subject: as-iosched: properly protect ioc_gone and ioc count X-Git-Tag: v2.6.27-rc1~1114^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=863fddcb4b0caee4c2d5bd6e3b28779920516db3;p=pandora-kernel.git as-iosched: properly protect ioc_gone and ioc count 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: Jens Axboe --- Reading git-diff-tree failed