From 69a852f567ab20358fe21b7815626c27a4214b42 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 6 Oct 2009 08:50:01 +0200 Subject: [PATCH] Fix wrong clock source in mutex Signed-off-by: Jens Axboe --- mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1