From: Jens Axboe Date: Tue, 6 Oct 2009 06:50:01 +0000 (+0200) Subject: Fix wrong clock source in mutex X-Git-Tag: fio-1.34.2~2^2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=69a852f567ab20358fe21b7815626c27a4214b42;hp=b767c7f8e3fd8efff51debe39149c65028cf963d Fix wrong clock source in mutex Signed-off-by: Jens Axboe --- 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);