commit | 1c04bf783c681219455f33f097155fc61f714999 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jaxboe@fusionio.com> | Tue Sep 07 13:28:17 2010 +0200 |
committer | Jens Axboe <jaxboe@fusionio.com> | Tue Sep 07 13:28:17 2010 +0200 |
tree | d46f322f550d4811615806237ab33e28a9815c83 | |
parent | d708ac5e21c97a92c9c7b6b7593d9f2b0d7c9d3f [diff] [blame] |
Align memory buffers for RAW io engines Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
diff --git a/fio.c b/fio.c index 7b03250..d20fc24 100644 --- a/fio.c +++ b/fio.c
@@ -811,7 +811,8 @@ if (allocate_io_mem(td)) return 1; - if (td->o.odirect || td->o.mem_align) + if (td->o.odirect || td->o.mem_align || + (td->io_ops->flags & FIO_RAWIO)) p = PAGE_ALIGN(td->orig_buffer) + td->o.mem_align; else p = td->orig_buffer;