Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c65fb61b3c92ad8f99f16c7a2c11247bfaf0a1da
Commit:     c65fb61b3c92ad8f99f16c7a2c11247bfaf0a1da
Parent:     c4977f596c5bce4d20fbd22cdb03486112985622
Author:     Jens Axboe <[EMAIL PROTECTED]>
AuthorDate: Wed Dec 13 13:25:18 2006 +0100
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Wed Dec 13 13:25:18 2006 +0100

    [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 <[EMAIL PROTECTED]>
---
 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 5934c4b..ef12627 100644
--- a/block/as-iosched.c
+++ b/block/as-iosched.c
@@ -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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to