Don't limit direct IO to 512b aligned
authorJens Axboe <jens.axboe@oracle.com>
Fri, 3 Jul 2009 06:33:08 +0000 (08:33 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 3 Jul 2009 06:33:08 +0000 (08:33 +0200)
This is a platform restriction at best, eg on Linux block devices must
have 512b memory buffer alignment (or hw sector size). With NFS, this
is not required. And other operating systems may have other limitations
as well, so don't hard core anything.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c

diff --git a/init.c b/init.c
index 12734bd..b9cb2bd 100644 (file)
--- a/init.c
+++ b/init.c
@@ -357,14 +357,6 @@ static int fixup_options(struct thread_data *td)
                                 " that isn't seekable. Pre-read disabled.\n");
        }
 
-       if (td->o.mem_align) {
-               if (td->o.odirect && !is_power_of_2(td->o.mem_align)) {
-                       log_err("fio: given IO mem alignment conflicts with"
-                                       " direct=1. Resetting.\n");
-                       td->o.mem_align = page_mask;
-               }
-       }
-                       
        return 0;
 }