Whamcloud - gitweb
src needs to be in the options list if it is going to be available for use.
[fs/lustre-release.git] / lustre / llite / super25.c
index 8ed5ca5..2408595 100644 (file)
@@ -101,6 +101,7 @@ void ll_destroy_inodecache(void)
 static void ll_umount_lustre(struct super_block *sb)
 {
         struct ll_sb_info *sbi = ll_s2sbi(sb);
+        sbi->ll_flags |= LL_SBI_UMOUNT;
         ll_gns_check_mounts(sbi, LL_GNS_UMOUNT);
 }
 
@@ -175,9 +176,18 @@ static int __init init_lustre_lite(void)
                 goto out;
         cleanup = 2;
 
-        rc = ll_gns_start_thread();
+        rc = ll_gns_thread_start();
         if (rc)
                 goto out;
+
+        ll_capa_timer.function = ll_capa_timer_callback;
+        ll_capa_timer.data = 0;
+        init_timer(&ll_capa_timer);        
+
+        rc = ll_capa_thread_start();
+        if (rc)
+                goto out;
+
         return 0;
 out:
         switch (cleanup) {
@@ -196,7 +206,9 @@ static void __exit exit_lustre_lite(void)
         unregister_filesystem(&lustre_fs_type);
         unregister_filesystem(&lustre_lite_fs_type);
 
-        ll_gns_stop_thread();
+        del_timer(&ll_capa_timer);
+        ll_capa_thread_stop();
+        ll_gns_thread_stop();
         ll_destroy_inodecache();
         
         LASSERTF(kmem_cache_destroy(ll_file_data_slab) == 0,