From: phil Date: Sat, 19 Jul 2003 18:41:50 +0000 (+0000) Subject: Implement llog_cleanup_commmit_master, so that the orphan code stops X-Git-Tag: v1_7_0_51~2^9~388 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a3b82cc0d4a00bb382e8e8b0573ee9666d5781ec;p=fs%2Flustre-release.git Implement llog_cleanup_commmit_master, so that the orphan code stops leaking threads (and a little memory) --- diff --git a/lustre/ptlrpc/ptlrpc_internal.h b/lustre/ptlrpc/ptlrpc_internal.h index 7bc3b01..8d66c88 100644 --- a/lustre/ptlrpc/ptlrpc_internal.h +++ b/lustre/ptlrpc/ptlrpc_internal.h @@ -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) { diff --git a/lustre/ptlrpc/ptlrpc_module.c b/lustre/ptlrpc/ptlrpc_module.c index 9c0944a..4b75026 100644 --- a/lustre/ptlrpc/ptlrpc_module.c +++ b/lustre/ptlrpc/ptlrpc_module.c @@ -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 */