projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
5bd526f
)
Merge branch 'io_uring-opt' of https://github.com/antonblanchard/fio
author
Jens Axboe
<axboe@kernel.dk>
Mon, 13 Jul 2020 14:01:52 +0000
(08:01 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 13 Jul 2020 14:01:52 +0000
(08:01 -0600)
* 'io_uring-opt' of https://github.com/antonblanchard/fio:
io_uring: Avoid needless update of completion queue head pointer
engines/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/io_uring.c
b/engines/io_uring.c
index cd0810f47f57d2e4dfcb5fe5c237c6b5dde768fa..ecff0657ed51e60af19bce99a0be1d803c63dd82 100644
(file)
--- a/
engines/io_uring.c
+++ b/
engines/io_uring.c
@@
-307,7
+307,9
@@
static int fio_ioring_cqring_reap(struct thread_data *td, unsigned int events,
head++;
} while (reaped + events < max);
- atomic_store_release(ring->head, head);
+ if (reaped)
+ atomic_store_release(ring->head, head);
+
return reaped;
}