summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-01-16 19:15:07 +0100
committerJens Axboe <jens.axboe@oracle.com>2009-01-16 19:15:07 +0100
commit15d182aa276b2ef60aec0b8b3c55b6a0806ca7ed (patch)
tree255e73b9bf2e6502ed2750e97f5d498c18949a29
parent3f8fc5ad7d36fa171559e7b94b0fd211ba2a4561 (diff)
downloadfio-15d182aa276b2ef60aec0b8b3c55b6a0806ca7ed.tar.gz
fio-15d182aa276b2ef60aec0b8b3c55b6a0806ca7ed.tar.bz2
libaio engine: get rid of non-async behaviour with buffered IO
It may not be true, just get rid of it. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--HOWTO4
-rw-r--r--engines/libaio.c6
2 files changed, 3 insertions, 7 deletions
diff --git a/HOWTO b/HOWTO
index 55595fca..f256f24f 100644
--- a/HOWTO
+++ b/HOWTO
@@ -402,7 +402,9 @@ ioengine=str Defines how the job issues io to the file. The following
vsync Basic readv(2) or writev(2) IO.
- libaio Linux native asynchronous io.
+ libaio Linux native asynchronous io. Note that Linux
+ may only support queued behaviour with
+ non-buffered IO (set direct=1 or buffered=0).
posixaio glibc posix asynchronous io.
diff --git a/engines/libaio.c b/engines/libaio.c
index 18dcf9dd..99170b53 100644
--- a/engines/libaio.c
+++ b/engines/libaio.c
@@ -186,14 +186,8 @@ static void fio_libaio_cleanup(struct thread_data *td)
static int fio_libaio_init(struct thread_data *td)
{
struct libaio_data *ld = malloc(sizeof(*ld));
- static int warn_print;
int err;
- if (td->o.iodepth > 1 && !td->o.odirect && !warn_print) {
- log_info("fio: libaio engine is only async for non-buffered IO\n");
- warn_print = 1;
- }
-
memset(ld, 0, sizeof(*ld));
err = io_queue_init(td->o.iodepth, &ld->aio_ctx);