[PATCH] Allow as-iosched to be unloaded
We implemented the missing bits to allow this some time ago, and they are integrated in AS. So remove the __module_get() to allow the module to be unloaded. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
@@ -1462,20 +1462,7 @@ static struct elevator_type iosched_as = {
|
|||||||
|
|
||||||
static int __init as_init(void)
|
static int __init as_init(void)
|
||||||
{
|
{
|
||||||
int ret;
|
return elv_register(&iosched_as);
|
||||||
|
|
||||||
ret = elv_register(&iosched_as);
|
|
||||||
if (!ret) {
|
|
||||||
/*
|
|
||||||
* don't allow AS to get unregistered, since we would have
|
|
||||||
* to browse all tasks in the system and release their
|
|
||||||
* as_io_context first
|
|
||||||
*/
|
|
||||||
__module_get(THIS_MODULE);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __exit as_exit(void)
|
static void __exit as_exit(void)
|
||||||
|
Reference in New Issue
Block a user