diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2006-12-13 07:25:18 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2006-12-13 07:25:18 -0500 |
commit | c65fb61b3c92ad8f99f16c7a2c11247bfaf0a1da (patch) | |
tree | 7443daa73c5381eacf94e4f225a2453a867018c4 /block | |
parent | c4977f596c5bce4d20fbd22cdb03486112985622 (diff) |
[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>
Diffstat (limited to 'block')
-rw-r--r-- | block/as-iosched.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/block/as-iosched.c b/block/as-iosched.c index 5934c4bfd52..ef126277b4b 100644 --- a/block/as-iosched.c +++ b/block/as-iosched.c | |||
@@ -1462,20 +1462,7 @@ static struct elevator_type iosched_as = { | |||
1462 | 1462 | ||
1463 | static int __init as_init(void) | 1463 | static int __init as_init(void) |
1464 | { | 1464 | { |
1465 | int ret; | 1465 | return elv_register(&iosched_as); |
1466 | |||
1467 | ret = elv_register(&iosched_as); | ||
1468 | if (!ret) { | ||
1469 | /* | ||
1470 | * don't allow AS to get unregistered, since we would have | ||
1471 | * to browse all tasks in the system and release their | ||
1472 | * as_io_context first | ||
1473 | */ | ||
1474 | __module_get(THIS_MODULE); | ||
1475 | return 0; | ||
1476 | } | ||
1477 | |||
1478 | return ret; | ||
1479 | } | 1466 | } |
1480 | 1467 | ||
1481 | static void __exit as_exit(void) | 1468 | static void __exit as_exit(void) |