Whamcloud - gitweb
file ibnal.c was initially added on branch b_devel.
[fs/lustre-release.git] / lustre / ptlrpc / ptlrpc_module.c
index 57f3653..4b75026 100644 (file)
@@ -100,13 +100,14 @@ __init int ptlrpc_init(void)
         int rc;
         ENTRY;
 
-        lustre_assert_wire_constants ();
-        
+        lustre_assert_wire_constants();
+
         rc = ptlrpc_init_portals();
         if (rc)
                 RETURN(rc);
 
         ptlrpc_init_connection();
+        llog_init_commit_master();
 
         ptlrpc_put_connection_superhack = ptlrpc_put_connection;
         ptlrpc_abort_inflight_superhack = ptlrpc_abort_inflight;
@@ -117,6 +118,9 @@ static void __exit ptlrpc_exit(void)
 {
         ptlrpc_exit_portals();
         ptlrpc_cleanup_connection();
+#ifdef ENABLE_ORPHANS
+        llog_cleanup_commit_master(0);
+#endif
 }
 
 /* connection.c */