Freezer: make kernel threads nonfreezable by default
[safe/jmp/linux-2.6] / drivers / md / md.c
index 1c54f3c..9aefc4a 100644 (file)
@@ -4642,7 +4642,6 @@ static int md_thread(void * arg)
         * many dirty RAID5 blocks.
         */
 
-       current->flags |= PF_NOFREEZE;
        allow_signal(SIGKILL);
        while (!kthread_should_stop()) {
 
@@ -5814,7 +5813,7 @@ static __exit void md_exit(void)
        }
 }
 
-module_init(md_init)
+subsys_initcall(md_init);
 module_exit(md_exit)
 
 static int get_ro(char *buffer, struct kernel_param *kp)