Whamcloud - gitweb
LU-9679 llite: fix possible race with module unload.
[fs/lustre-release.git] / lustre / llite / super25.c
index 2a510ef..befd246 100644 (file)
@@ -149,8 +149,7 @@ static int __init lustre_init(void)
        if (rc != 0)
                GOTO(out_inode_fini_env, rc);
 
-       lustre_register_client_fill_super(ll_fill_super);
-       lustre_register_kill_super_cb(ll_kill_super);
+       lustre_register_super_ops(THIS_MODULE, ll_fill_super, ll_kill_super);
 
        RETURN(0);
 
@@ -169,8 +168,7 @@ out_cache:
 
 static void __exit lustre_exit(void)
 {
-       lustre_register_client_fill_super(NULL);
-       lustre_register_kill_super_cb(NULL);
+       lustre_register_super_ops(NULL, NULL, NULL);
 
        llite_tunables_unregister();