[PATCH] fio: ->done_mutex isn't used anymore, kill it
authorJens Axboe <axboe@suse.de>
Wed, 19 Oct 2005 08:30:43 +0000 (10:30 +0200)
committerJens Axboe <axboe@suse.de>
Wed, 19 Oct 2005 08:30:43 +0000 (10:30 +0200)
fio.c

diff --git a/fio.c b/fio.c
index f6a25271100e9016eb4d9af210ad900674e493a6..b7df04a2aa2a364a3799008e20e83ca7ed207e2c 100644 (file)
--- 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;