From 98055d22d243a4c3bce8e29cabde27954530e06d Mon Sep 17 00:00:00 2001 From: Jay Xiong Date: Wed, 3 Feb 2010 11:13:22 +0800 Subject: [PATCH 1/1] b=21355 fix initiailzation of recovery thread Recovery thread calls cfs_daemonize() to detach the thread context, this causes all recovery threads share a common fs_struct: init_fs. We should call cfs_daemonize_ctxt() instead. i=wangdi i=tappro --- lustre/ldlm/ldlm_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index a722ff2..d683bae 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -1714,7 +1714,7 @@ static int target_recovery_thread(void *arg) int rc = 0; ENTRY; - cfs_daemonize("tgt_recov"); + cfs_daemonize_ctxt("tgt_recov"); SIGNAL_MASK_LOCK(current, flags); sigfillset(¤t->blocked); -- 1.8.3.1