From: Alexander Zarochentsev Date: Fri, 16 Feb 2018 18:06:57 +0000 (-0500) Subject: LU-5695 libcfs: watchdog dispatch thread fix X-Git-Tag: 2.10.59~87 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=1947bc08c0709ad80611dc65785ccb8dbf7f7214 LU-5695 libcfs: watchdog dispatch thread fix lc_watchdogd may stop imediately after start because nobody clears the stop flag. Xyratex-bug-id: MRP-2108 MRP-1913 Change-Id: I1eaaf0330c111b7f2b17081c716ef8c200677d6b Signed-off-by: Alexander Zarochentsev Reviewed-on: https://review.whamcloud.com/12155 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Dmitry Eremin Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- diff --git a/libcfs/libcfs/watchdog.c b/libcfs/libcfs/watchdog.c index 4f18e3c..524b4b5 100644 --- a/libcfs/libcfs/watchdog.c +++ b/libcfs/libcfs/watchdog.c @@ -335,6 +335,7 @@ static void lcw_dispatch_stop(void) wake_up(&lcw_event_waitq); wait_for_completion(&lcw_stop_completion); + clear_bit(LCW_FLAG_STOP, &lcw_flags); CDEBUG(D_INFO, "watchdog dispatcher has shut down.\n");