Whamcloud - gitweb
Implement llog_cleanup_commmit_master, so that the orphan code stops
authorphil <phil>
Sat, 19 Jul 2003 18:41:50 +0000 (18:41 +0000)
committerphil <phil>
Sat, 19 Jul 2003 18:41:50 +0000 (18:41 +0000)
leaking threads (and a little memory)

lustre/ptlrpc/ptlrpc_internal.h
lustre/ptlrpc/ptlrpc_module.c

index 7bc3b01..8d66c88 100644 (file)
@@ -48,7 +48,7 @@ void ptlrpc_lprocfs_unregister_service(struct ptlrpc_service *svc);
 
 /* recovd_thread.c */
 int llog_init_commit_master(void);
-int llog_cleanup_commit_master(void);
+int llog_cleanup_commit_master(int force);
 
 static inline int opcode_offset(__u32 opc) {
         if (opc < OST_LAST_OPC) {
index 9c0944a..4b75026 100644 (file)
@@ -118,7 +118,9 @@ static void __exit ptlrpc_exit(void)
 {
         ptlrpc_exit_portals();
         ptlrpc_cleanup_connection();
-        llog_cleanup_commit_master();
+#ifdef ENABLE_ORPHANS
+        llog_cleanup_commit_master(0);
+#endif
 }
 
 /* connection.c */