From 1947bc08c0709ad80611dc65785ccb8dbf7f7214 Mon Sep 17 00:00:00 2001 From: Alexander Zarochentsev Date: Fri, 16 Feb 2018 13:06:57 -0500 Subject: [PATCH] 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 --- libcfs/libcfs/watchdog.c | 1 + 1 file changed, 1 insertion(+) 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"); -- 1.8.3.1