libaio engine: get rid of non-async behaviour with buffered IO
authorJens Axboe <jens.axboe@oracle.com>
Fri, 16 Jan 2009 18:15:07 +0000 (19:15 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 16 Jan 2009 18:15:07 +0000 (19:15 +0100)
It may not be true, just get rid of it.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
HOWTO
engines/libaio.c

diff --git a/HOWTO b/HOWTO
index 55595fca2594dd14972c7d791290dc8914a92f14..f256f24fde3a28cd20e7a25786ec6481f766b305 100644 (file)
--- 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.
 
index 18dcf9ddfad59d753a2cf4b71061065dc6baf6fc..99170b5394f6952060626b1f55d4ed8db85e29a5 100644 (file)
@@ -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);