summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-10-06 08:50:01 +0200
committerJens Axboe <jens.axboe@oracle.com>2009-10-06 08:50:01 +0200
commit69a852f567ab20358fe21b7815626c27a4214b42 (patch)
treea17a4ebab9933bd4e024bab96236d0d53215045f /mutex.c
parentb767c7f8e3fd8efff51debe39149c65028cf963d (diff)
downloadfio-69a852f567ab20358fe21b7815626c27a4214b42.tar.gz
Fix wrong clock source in mutex
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'mutex.c')
-rw-r--r--mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mutex.c b/mutex.c
index a4474374..9f0f094d 100644
--- a/mutex.c
+++ b/mutex.c
@@ -94,7 +94,7 @@ int fio_mutex_down_timeout(struct fio_mutex *mutex, unsigned int seconds)
struct timespec t;
int ret = 0;
- clock_gettime(CLOCK_REALTIME, &t);
+ clock_gettime(CLOCK_MONOTONIC, &t);
t.tv_sec += seconds;
pthread_mutex_lock(&mutex->lock);