get_file_type() should use stat(), not lstat()
[fio.git] / mutex.c
diff --git a/mutex.c b/mutex.c
index 9f0f094dc11793feace1975ac880a636999030a7..e148430b618e5cae1c1fd93c1134f47910198ec6 100644 (file)
--- a/mutex.c
+++ b/mutex.c
@@ -11,6 +11,7 @@
 #include "mutex.h"
 #include "arch/arch.h"
 #include "os/os.h"
+#include "helpers.h"
 
 void fio_mutex_remove(struct fio_mutex *mutex)
 {
@@ -94,7 +95,7 @@ int fio_mutex_down_timeout(struct fio_mutex *mutex, unsigned int seconds)
        struct timespec t;
        int ret = 0;
 
-       clock_gettime(CLOCK_MONOTONIC, &t);
+       clock_gettime(CLOCK_REALTIME, &t);
        t.tv_sec += seconds;
 
        pthread_mutex_lock(&mutex->lock);