diskutil: get rid of disk_util_start_exit()
authorJens Axboe <axboe@fb.com>
Fri, 24 Oct 2014 05:47:01 +0000 (23:47 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 24 Oct 2014 05:47:01 +0000 (23:47 -0600)
No need to wrap this in a function, just set the exit variable.

Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c
diskutil.h

index 941a3ea..d19d870 100644 (file)
--- 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);
 }
index 6b1ed6b..8623fd7 100644 (file)
@@ -129,8 +129,4 @@ static inline int update_io_ticks(void)
 }
 #endif
 
-static inline void disk_util_start_exit(void)
-{
-       helper_exit = 1;
-}
 #endif