Skip to content

Commit

Permalink
[PATCH] Allow as-iosched to be unloaded
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Jens Axboe committed Dec 13, 2006
1 parent c4977f5 commit c65fb61
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions block/as-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1462,20 +1462,7 @@ static struct elevator_type iosched_as = {

static int __init as_init(void)
{
int ret;

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;
return elv_register(&iosched_as);
}

static void __exit as_exit(void)
Expand Down

0 comments on commit c65fb61

Please sign in to comment.