From dd290fb4ab7d8e0f3aa88495096eb93177942fd7 Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Thu, 16 Jun 2016 14:31:52 -0400 Subject: [PATCH 1/1] helper_thread: remove impossible branch I believe that the intention is to call update_io_ticks every DISK_UTIL_MSEC. Make helper_thread_main do this. Signed-off-by: Jens Axboe --- helper_thread.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/helper_thread.c b/helper_thread.c index e788af5b..f031df4d 100644 --- a/helper_thread.c +++ b/helper_thread.c @@ -110,12 +110,8 @@ static void *helper_thread_main(void *data) msec_to_next_event = DISK_UTIL_MSEC; if (since_du >= DISK_UTIL_MSEC) msec_to_next_event -= (since_du - DISK_UTIL_MSEC); - } else { - if (since_du >= DISK_UTIL_MSEC) - msec_to_next_event = DISK_UTIL_MSEC - (DISK_UTIL_MSEC - since_du); - else - msec_to_next_event = DISK_UTIL_MSEC; - } + } else + msec_to_next_event = DISK_UTIL_MSEC - since_du; if (hd->do_stat) { hd->do_stat = 0; -- 2.25.1