summaryrefslogtreecommitdiff
path: root/flow.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-08-02 11:21:36 +0200
committerJens Axboe <axboe@kernel.dk>2012-08-02 11:21:36 +0200
commit521da527743088a9bd2ab882f8b64799d49d5848 (patch)
tree1844b18249229e13b3da133cc11552c29dd7cda8 /flow.c
parent9ec7779f89d4dde9fe1e23d68abaefda54b35de7 (diff)
mutex: make 0/1 FIO_MUTEX_LOCKED and FIO_MUTEX_UNLOCKED
Makes the API look cleaner. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'flow.c')
-rw-r--r--flow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flow.c b/flow.c
index bf5eeec..2993f4e 100644
--- a/flow.c
+++ b/flow.c
@@ -92,7 +92,7 @@ void flow_exit_job(struct thread_data *td)
void flow_init(void)
{
- flow_lock = fio_mutex_init(1);
+ flow_lock = fio_mutex_init(FIO_MUTEX_UNLOCKED);
flow_list = smalloc(sizeof(*flow_list));
INIT_FLIST_HEAD(flow_list);
}