projects
/
disktools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c83567
)
[PATCH] fio: aio implies direct io, since there's no buffered aio support
author
Jens Axboe
<axboe@suse.de>
Tue, 25 Oct 2005 09:08:13 +0000
(11:08 +0200)
committer
Jens Axboe
<axboe@suse.de>
Tue, 25 Oct 2005 09:08:13 +0000
(11:08 +0200)
fio.c
patch
|
blob
|
blame
|
history
diff --git
a/fio.c
b/fio.c
index aa9c03b4a9bccea7f823f623c888b7085ce623b5..6c549176a9cd7ea8452701be461fb18fe767948f 100644
(file)
--- 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;