Whamcloud - gitweb
LU-1125 recovery: initial recovery thread's watchdog
authorBobi Jam <bobijam@whamcloud.com>
Wed, 22 Feb 2012 06:30:41 +0000 (14:30 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 29 Feb 2012 22:57:50 +0000 (17:57 -0500)
Recovery thread does not have watchdog attached, correctly initialize
it.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I6993c39bbf18f47e9ccd965a5d2ba1919cfb7736
Reviewed-on: http://review.whamcloud.com/2174
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <tappro@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ldlm/ldlm_lib.c

index 967ddf5..57f7eb9 100644 (file)
@@ -1835,6 +1835,7 @@ static int target_recovery_thread(void *arg)
         thread->t_id = -1; /* force filter_iobuf_get/put to use local buffers */
         env.le_ctx.lc_thread = thread;
         thread->t_data = NULL;
         thread->t_id = -1; /* force filter_iobuf_get/put to use local buffers */
         env.le_ctx.lc_thread = thread;
         thread->t_data = NULL;
+        thread->t_watchdog = NULL;
 
         CDEBUG(D_HA, "%s: started recovery thread pid %d\n", obd->obd_name,
                cfs_curproc_pid());
 
         CDEBUG(D_HA, "%s: started recovery thread pid %d\n", obd->obd_name,
                cfs_curproc_pid());