From 98b4b0a286c2a8c77d9cefd84cfaf47544b5b9e0 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 23 Oct 2014 23:47:01 -0600 Subject: [PATCH 1/1] diskutil: get rid of disk_util_start_exit() No need to wrap this in a function, just set the exit variable. Signed-off-by: Jens Axboe --- backend.c | 2 +- diskutil.h | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/backend.c b/backend.c index 941a3ead..d19d870f 100644 --- a/backend.c +++ b/backend.c @@ -1981,7 +1981,7 @@ static void wait_for_helper_thread_exit(void) { void *ret; - disk_util_start_exit(); + helper_exit = 1; pthread_cond_signal(&helper_cond); pthread_join(helper_thread, &ret); } diff --git a/diskutil.h b/diskutil.h index 6b1ed6b0..8623fd72 100644 --- a/diskutil.h +++ b/diskutil.h @@ -129,8 +129,4 @@ static inline int update_io_ticks(void) } #endif -static inline void disk_util_start_exit(void) -{ - helper_exit = 1; -} #endif -- 2.25.1