Whamcloud - gitweb
do as b1_4, ptlrpc_daemonize() is still in ptlrpc module.
authorlsy <lsy>
Fri, 24 Mar 2006 10:50:00 +0000 (10:50 +0000)
committerlsy <lsy>
Fri, 24 Mar 2006 10:50:00 +0000 (10:50 +0000)
lustre/obdclass/genops.c

index 87119ca..0d7479f 100644 (file)
@@ -1021,10 +1021,16 @@ static int ping_evictor_main(void *arg)
         ENTRY;
 
         lock_kernel();
-        ptlrpc_daemonize();
 
-        cfs_block_allsigs();
+        /* ptlrpc_daemonize() */
+        exit_mm(current);
+        lustre_daemonize_helper();
+        set_fs_pwd(current->fs, init_task.fs->pwdmnt, init_task.fs->pwd);
+        exit_files(current);
+        reparent_to_init();
         THREAD_NAME(cfs_curproc_comm(), CFS_CURPROC_COMM_MAX-1, "ping_evictor");
+
+        cfs_block_allsigs();
         unlock_kernel();
 
         CDEBUG(D_HA, "Starting Ping Evictor\n");