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 941a3ead9b63acfc07170f04d9a83f02c072d30b..d19d870f8143d985882841af68a0a94c056f7e35 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 6b1ed6b0a8e96a3a84519b3016e8e78974b6abcd..8623fd723b723053c59337984208c5c7f3f57a8e 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