summaryrefslogtreecommitdiff
path: root/diskutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'diskutil.h')
-rw-r--r--diskutil.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/diskutil.h b/diskutil.h
index ee5c0afd..c1035785 100644
--- a/diskutil.h
+++ b/diskutil.h
@@ -5,7 +5,7 @@
#include "lib/output_buffer.h"
#include "helper_thread.h"
-#include "mutex.h"
+#include "fio_sem.h"
struct disk_util_stats {
uint64_t ios[2];
@@ -67,7 +67,7 @@ struct disk_util {
struct timespec time;
- struct fio_mutex *lock;
+ struct fio_sem *lock;
unsigned long users;
};
@@ -76,7 +76,7 @@ static inline void disk_util_mod(struct disk_util *du, int val)
if (du) {
struct flist_head *n;
- fio_mutex_down(du->lock);
+ fio_sem_down(du->lock);
du->users += val;
flist_for_each(n, &du->slavelist) {
@@ -85,7 +85,7 @@ static inline void disk_util_mod(struct disk_util *du, int val)
slave = flist_entry(n, struct disk_util, slavelist);
slave->users += val;
}
- fio_mutex_up(du->lock);
+ fio_sem_up(du->lock);
}
}
static inline void disk_util_inc(struct disk_util *du)