[PATCH] mmap: fix bug introduced with the io engine split
authorJens Axboe <jens.axboe@oracle.com>
Wed, 18 Oct 2006 13:06:22 +0000 (15:06 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 18 Oct 2006 13:06:22 +0000 (15:06 +0200)
We never initialized the mmap area, because it forgot
to get FIO_MMAPIO.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/fio-engine-mmap.c

index ad294f5d687f80d5a0555e12bc6ad05dbb87fb4c..0c79752ff17c3c61c33b2fc01a715b471f531566 100644 (file)
@@ -98,5 +98,5 @@ struct ioengine_ops ioengine = {
        .event          = fio_mmapio_event,
        .cleanup        = fio_mmapio_cleanup,
        .sync           = fio_mmapio_sync,
-       .flags          = FIO_SYNCIO,
+       .flags          = FIO_SYNCIO | FIO_MMAPIO,
 };