commit | 2824bc9328467127083c1325f54b67d298c333b2 | [log] [tgz] |
---|---|---|
author | Tejun Heo <htejun@gmail.com> | Thu Oct 20 10:56:41 2005 +0200 |
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | Fri Oct 28 08:15:58 2005 +0200 |
tree | 0d19aeb555c35ddbdbcf195b976964523fecc404 | |
parent | b2982649ce38293b14684b26bcda20cfc54164e6 [diff] |
[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 <htejun@gmail.com> Signed-off-by: Jens Axboe <axboe@suse.de>