rand_r() only returns up to RAND_MAX which is INT32_MAX. This means that on sufficiently large bdevs, especially with smaller block sizes, bdevperf may not be issuing I/O across the full range of the bdev. Found while investigating issue #2908. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I16db684a57a96f138e709008bded4471428944b6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16768 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
bdevperf.c | ||
bdevperf.py | ||
Makefile |