From 747f88cb22bf05392e9517d432729a36f8cd2219 Mon Sep 17 00:00:00 2001 From: yury Date: Sun, 24 Aug 2008 15:53:57 +0000 Subject: [PATCH] b=14608 r=wangdi,shadow - new recov thread code; - cleanups and fixes. --- lustre/ptlrpc/ptlrpc_module.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lustre/ptlrpc/ptlrpc_module.c b/lustre/ptlrpc/ptlrpc_module.c index 9d2a646..1e289dd 100644 --- a/lustre/ptlrpc/ptlrpc_module.c +++ b/lustre/ptlrpc/ptlrpc_module.c @@ -97,10 +97,17 @@ __init int ptlrpc_init(void) if (ptlrpc_cbdata_slab == NULL) GOTO(cleanup, rc); + cleanup_phase = 5; + rc = llog_recov_init(); + if (rc) + GOTO(cleanup, rc); + RETURN(0); cleanup: switch(cleanup_phase) { + case 5: + cfs_mem_cache_destroy(ptlrpc_cbdata_slab); case 4: ldlm_exit(); case 3: @@ -118,6 +125,7 @@ cleanup: #ifdef __KERNEL__ static void __exit ptlrpc_exit(void) { + llog_recov_fini(); ldlm_exit(); ptlrpc_stop_pinger(); ptlrpc_exit_portals(); -- 1.8.3.1