Whamcloud - gitweb
b=21355 fix initiailzation of recovery thread
authorJay Xiong <Jinshan.Xiong@Sun.COM>
Wed, 3 Feb 2010 03:13:22 +0000 (11:13 +0800)
committerRobert Read <rread@sun.com>
Wed, 3 Feb 2010 19:54:43 +0000 (11:54 -0800)
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

index a722ff2..d683bae 100644 (file)
@@ -1714,7 +1714,7 @@ static int target_recovery_thread(void *arg)
         int rc = 0;
         ENTRY;
 
         int rc = 0;
         ENTRY;
 
-        cfs_daemonize("tgt_recov");
+        cfs_daemonize_ctxt("tgt_recov");
 
         SIGNAL_MASK_LOCK(current, flags);
         sigfillset(&current->blocked);
 
         SIGNAL_MASK_LOCK(current, flags);
         sigfillset(&current->blocked);