summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4b43f54)
If it's not raw io, we didn't align the buffer size. So we cannot
align.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
if (allocate_io_mem(td))
return 1;
if (allocate_io_mem(td))
return 1;
- p = ALIGN(td->orig_buffer);
+ if (td->o.odirect)
+ p = ALIGN(td->orig_buffer);
+ else
+ p = td->orig_buffer;
+
for (i = 0; i < max_units; i++) {
if (td->terminate)
return 1;
for (i = 0; i < max_units; i++) {
if (td->terminate)
return 1;