From 9d93ea65fc145a97f8f404db4eb5be763a1fff5d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 23 Oct 2014 08:55:52 -0600 Subject: [PATCH] Get rid of (now unused) disk_util_mutex Signed-off-by: Jens Axboe --- backend.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend.c b/backend.c index 8303dc62..dd7dc67e 100644 --- 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; } -- 2.25.1