projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0513822
)
io_uring: fix possible infinite loop
author
Satoru Takeuchi
<sat@cybozu.co.jp>
Sun, 5 May 2019 23:56:36 +0000
(08:56 +0900)
committer
Satoru Takeuchi
<sat@cybozu.co.jp>
Sun, 5 May 2019 23:56:36 +0000
(08:56 +0900)
When reaping some completed I/O before io_uring_enter(), it waits forever.
Signed-off-by: Satoru Takeuchi <sat@cybozu.co.jp>
engines/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/io_uring.c
b/engines/io_uring.c
index 5b3509a98d734bd3fe50157b81a3aa1a358b9547..a5e77d8f52fcfe29e1985824f953b0b594e64f85 100644
(file)
--- a/
engines/io_uring.c
+++ b/
engines/io_uring.c
@@
-233,6
+233,8
@@
static int fio_ioring_getevents(struct thread_data *td, unsigned int min,
r = fio_ioring_cqring_reap(td, events, max);
if (r) {
events += r;
+ if (actual_min != 0)
+ actual_min -= r;
continue;
}