projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure io_u->buflen is aligned to the verify_interval
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index 11672cf3c7ab6cd2fd29ce591a0586ac86a0fc09..865c58260d976b916cc2d526a84609c968ca5132 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-459,6
+459,10
@@
static unsigned int __get_next_buflen(struct thread_data *td, struct io_u *io_u)
}
}
+ if (td->o.do_verify && td->o.verify != VERIFY_NONE)
+ buflen = (buflen + td->o.verify_interval - 1) &
+ ~(td->o.verify_interval - 1);
+
if (!td->o.bs_unaligned && is_power_of_2(minbs))
buflen = (buflen + minbs - 1) & ~(minbs - 1);