Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Sep 24, 2021

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit d9137307bc621280dcb1738e5df5d5ee4269a665:

Merge branch 'one-core' of https://github.com/ErwanAliasr1/fio (2021-09-20 18:29:40 -0600)

are available in the Git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to c53476111d5ede61d24b3fa181fa2d19d3a3e6bc:

t/io_uring: ensure batch counts are smaller or equal to depth (2021-09-23 09:15:16 -0600)

----------------------------------------------------------------
Jens Axboe (1):
t/io_uring: ensure batch counts are smaller or equal to depth

 t/io_uring.c | 5 +++++
 1 file changed, 5 insertions(+)

---

Diff of recent changes:

t/io_uring.c +5 -0
index 1adb8789..af1b8fa8 100644
@@ -617,6 +617,11 @@ int main(int argc, char *argv[])
 		}
 	}
 
+	if (batch_complete > depth)
+		batch_complete = depth;
+	if (batch_submit > depth)
+		batch_submit = depth;
+
 	submitter = calloc(nthreads, sizeof(*submitter) +
 				depth * sizeof(struct iovec));
 	for (j = 0; j < nthreads; j++) {