projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stat: use long doubles to identify latency percentiles
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index 56723addc5af2f57348d2b3784c4594a5c8e88b1..45e769e6f93da0bbb9e93c288121f8b3c4e83d12 100644
(file)
--- a/
ioengines.c
+++ b/
ioengines.c
@@
-131,7
+131,7
@@
static struct ioengine_ops *__load_ioengine(const char *name)
/*
* linux libaio has alias names, so convert to what we want
*/
/*
* linux libaio has alias names, so convert to what we want
*/
- if (!strncmp(engine, "linuxaio", 8)
|| !strncmp(engine, "aio", 3)
) {
+ if (!strncmp(engine, "linuxaio", 8)) {
dprint(FD_IO, "converting ioengine name: %s -> libaio\n", name);
strcpy(engine, "libaio");
}
dprint(FD_IO, "converting ioengine name: %s -> libaio\n", name);
strcpy(engine, "libaio");
}
@@
-288,6
+288,13
@@
enum fio_q_status td_io_queue(struct thread_data *td, struct io_u *io_u)
assert((io_u->flags & IO_U_F_FLIGHT) == 0);
io_u_set(td, io_u, IO_U_F_FLIGHT);
assert((io_u->flags & IO_U_F_FLIGHT) == 0);
io_u_set(td, io_u, IO_U_F_FLIGHT);
+
+ /*
+ * If overlap checking was enabled in offload mode we
+ * can release this lock that was acquired when we
+ * started the overlap check because the IO_U_F_FLIGHT
+ * flag is now set
+ */
if (td_offload_overlap(td))
pthread_mutex_unlock(&overlap_check);
if (td_offload_overlap(td))
pthread_mutex_unlock(&overlap_check);