projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
t/io_uring: only calculate per-file depth if we have files
[fio.git]
/
t
/
io_uring.c
diff --git
a/t/io_uring.c
b/t/io_uring.c
index 18e8b38e7d15ac1f00818511f5e4c4ec73d74b74..aa6e09e9edf94b3438e434dac0f4e21bb113d964 100644
(file)
--- a/
t/io_uring.c
+++ b/
t/io_uring.c
@@
-974,7
+974,9
@@
static int setup_ring(struct submitter *s)
for (i = 0; i < p.sq_entries; i++)
sring->array[i] = i;
- s->per_file_depth = (depth + s->nr_files - 1) / s->nr_files;
+ s->per_file_depth = INT_MAX;
+ if (s->nr_files)
+ s->per_file_depth = (depth + s->nr_files - 1) / s->nr_files;
return 0;
}