Get rid of (now unused) disk_util_mutex
authorJens Axboe <axboe@fb.com>
Thu, 23 Oct 2014 14:55:52 +0000 (08:55 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 23 Oct 2014 14:55:52 +0000 (08:55 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c

index 8303dc626a5c69bbfb999c046cd16958566deaf2..dd7dc67ea6bdae550a41d11a8cb6d9c844dcaf33 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -56,7 +56,6 @@
 #include "lib/tp.h"
 
 static pthread_t disk_util_thread;
-static struct fio_mutex *disk_thread_mutex;
 static pthread_cond_t du_cond;
 static pthread_mutex_t du_lock;
 
@@ -2030,14 +2029,11 @@ static int create_disk_util_thread(void)
 
        setup_disk_util();
 
-       disk_thread_mutex = fio_mutex_init(FIO_MUTEX_LOCKED);
-
        pthread_cond_init(&du_cond, NULL);
        pthread_mutex_init(&du_lock, NULL);
 
        ret = pthread_create(&disk_util_thread, NULL, disk_thread_main, NULL);
        if (ret) {
-               fio_mutex_remove(disk_thread_mutex);
                log_err("Can't create disk util thread: %s\n", strerror(ret));
                return 1;
        }
@@ -2110,7 +2106,6 @@ int fio_backend(void)
        sfree(cgroup_mnt);
 
        fio_mutex_remove(startup_mutex);
-       fio_mutex_remove(disk_thread_mutex);
        stat_exit();
        return exit_value;
 }