From: Tejun Heo Date: Thu, 20 Oct 2005 08:56:41 +0000 (+0200) Subject: [PATCH] fix try_module_get race in elevator_find X-Git-Tag: v2.6.15-rc1~733^2~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2824bc9328467127083c1325f54b67d298c333b2;p=pandora-kernel.git [PATCH] fix try_module_get race in elevator_find This patch removes try_module_get race in elevator_find. try_module_get should always be called with the spinlock protecting what the module init/cleanup routines register/unregister to held. In the case of elevators, we should be holding elv_list to avoid it going away between spin_unlock_irq and try_module_get. Signed-off-by: Tejun Heo Signed-off-by: Jens Axboe --- Reading git-diff-tree failed