From: Jay Xiong Date: Wed, 3 Feb 2010 03:13:22 +0000 (+0800) Subject: b=21355 fix initiailzation of recovery thread X-Git-Tag: 1.10.0.36~6 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=98055d22d243a4c3bce8e29cabde27954530e06d 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 --- 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);