projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'add-librpma-engines' of https://github.com/janekmi/fio
[fio.git]
/
engines
/
libaio.c
diff --git
a/engines/libaio.c
b/engines/libaio.c
index daa576dad3e64b97f4af427633921f0ab9c61e6c..b909b79e9c7169f7898e2aa32be37f895cafe4a0 100644
(file)
--- a/
engines/libaio.c
+++ b/
engines/libaio.c
@@
-195,8
+195,8
@@
static int user_io_getevents(io_context_t aio_ctx, unsigned int max,
} else {
/* There is another completion to reap */
events[i] = ring->events[head];
} else {
/* There is another completion to reap */
events[i] = ring->events[head];
- read_barrier();
-
ring->head = (head + 1) % ring->nr
;
+ atomic_store_release(&ring->head,
+
(head + 1) % ring->nr)
;
i++;
}
}
i++;
}
}
@@
-445,7
+445,7
@@
static int fio_libaio_init(struct thread_data *td)
return 0;
}
return 0;
}
-
static
struct ioengine_ops ioengine = {
+
FIO_STATIC
struct ioengine_ops ioengine = {
.name = "libaio",
.version = FIO_IOOPS_VERSION,
.flags = FIO_ASYNCIO_SYNC_TRIM,
.name = "libaio",
.version = FIO_IOOPS_VERSION,
.flags = FIO_ASYNCIO_SYNC_TRIM,