From: Jens Axboe Date: Wed, 19 Oct 2005 08:30:43 +0000 (+0200) Subject: [PATCH] fio: ->done_mutex isn't used anymore, kill it X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=5f02a78e74fec6f9b7aacd5296f9ba7834381258;p=disktools.git [PATCH] fio: ->done_mutex isn't used anymore, kill it --- diff --git a/fio.c b/fio.c index f6a2527..b7df04a 100644 --- a/fio.c +++ b/fio.c @@ -129,7 +129,6 @@ struct thread_data { unsigned long blocks_read; unsigned long last_block; sem_t mutex; - sem_t done_mutex; struct drand48_data random_state; /* @@ -485,7 +484,6 @@ out: err: if (td->fd != -1) close(td->fd); - sem_post(&td->done_mutex); if (ret) sem_post(&startup_sem); shmdt(td); @@ -533,7 +531,6 @@ void add_job(const char *filename, int rw, int bs, int direct, int prio, int ran td->thread_number = thread_number; td->stat_fd = -1; sem_init(&td->mutex, 1, 1); - sem_init(&td->done_mutex, 1, 0); td->min_latency = 10000000; td->ddir = rw; td->ioprio = prio;