AFS: AFS fixups
[firefly-linux-kernel-4.4.55.git] / fs / afs / main.c
index 80ec6fd19a733fb50efb3fb896061fea76a08298..f1f71ff7d5c673ccccffd02f965224ea51456934 100644 (file)
@@ -149,6 +149,7 @@ error_cache:
        afs_vlocation_purge();
        afs_cell_purge();
        afs_proc_cleanup();
+       rcu_barrier();
        printk(KERN_ERR "kAFS: failed to register: %d\n", ret);
        return ret;
 }
@@ -176,6 +177,7 @@ static void __exit afs_exit(void)
        cachefs_unregister_netfs(&afs_cache_netfs);
 #endif
        afs_proc_cleanup();
+       rcu_barrier();
 }
 
 module_exit(afs_exit);