From 1c04bf783c681219455f33f097155fc61f714999 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 7 Sep 2010 13:28:17 +0200 Subject: [PATCH] Align memory buffers for RAW io engines Signed-off-by: Jens Axboe --- fio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fio.c b/fio.c index 7b03250b..d20fc245 100644 --- a/fio.c +++ b/fio.c @@ -811,7 +811,8 @@ static int init_io_u(struct thread_data *td) 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; -- 2.25.1