From ed797f6eeb02f79b8c466823fb948643349b0cf6 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 25 Oct 2005 11:08:13 +0200 Subject: [PATCH] [PATCH] fio: aio implies direct io, since there's no buffered aio support --- fio.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/fio.c b/fio.c index aa9c03b..6c54917 100644 --- a/fio.c +++ b/fio.c @@ -1038,8 +1038,16 @@ static int add_job(struct thread_data *td, const char *filename, int prioclass, td->min_latency = 10000000; td->ioprio = (prioclass << IOPRIO_CLASS_SHIFT) | prio; - if (td->use_aio && !td->aio_depth) - td->aio_depth = 1; + if (td->use_aio) { + if (!td->aio_depth) + td->aio_depth = 1; + + /* + * no buffered aio support for now + */ + if (!td->odirect) + td->odirect = 1; + } if (setup_rate(td)) return -1; -- 2.25.1