The following changes since commit d5c3be105af97c71bc2095ffd19343e4217abcd7: zbd: remove dead zone retrieval call (2021-09-13 14:09:01 -0600) are available in the Git repository at: git://git.kernel.dk/fio.git master for you to fetch changes up to 2686fc2279c0e1272a48657dc62c16059a672da9: t/io_uring: add switch -O for O_DIRECT vs buffered (2021-09-15 06:51:01 -0600) ---------------------------------------------------------------- Jens Axboe (1): t/io_uring: add switch -O for O_DIRECT vs buffered t/io_uring.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- Diff of recent changes: diff --git a/t/io_uring.c b/t/io_uring.c index aed6fdbd..0acbf0b4 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -554,9 +554,10 @@ static void usage(char *argv, int status) " -B <bool> : Fixed buffers, default %d\n" " -F <bool> : Register files, default %d\n" " -n <int> : Number of threads, default %d\n" + " -O <bool> : Use O_DIRECT, default %d\n" " -N <bool> : Perform just no-op requests, default %d\n", argv, DEPTH, BATCH_SUBMIT, BATCH_COMPLETE, BS, polled, - fixedbufs, register_files, nthreads, do_nop); + fixedbufs, register_files, nthreads, !buffered, do_nop); exit(status); } @@ -572,7 +573,7 @@ int main(int argc, char *argv[]) if (!do_nop && argc < 2) usage(argv[0], 1); - while ((opt = getopt(argc, argv, "d:s:c:b:p:B:F:n:N:h?")) != -1) { + while ((opt = getopt(argc, argv, "d:s:c:b:p:B:F:n:N:O:h?")) != -1) { switch (opt) { case 'd': depth = atoi(optarg); @@ -605,6 +606,9 @@ int main(int argc, char *argv[]) case 'N': do_nop = !!atoi(optarg); break; + case 'O': + buffered = !atoi(optarg); + break; case 'h': case '?': default: