projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d708ac5
)
Align memory buffers for RAW io engines
author
Jens Axboe
<jaxboe@fusionio.com>
Tue, 7 Sep 2010 11:28:17 +0000
(13:28 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Tue, 7 Sep 2010 11:28:17 +0000
(13:28 +0200)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fio.c
patch
|
blob
|
blame
|
history
diff --git
a/fio.c
b/fio.c
index 7b03250bd22ddce7b01c6a3e8e306ca108ef447e..d20fc2451f551172328d44471aff3d3247fddda7 100644
(file)
--- 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;