Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bdevperf: use rand_r() twice to get 64-bit values
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 spdk#2908. Signed-off-by: Jim Harris <[email protected]> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16768 (master) (cherry picked from commit 0d11cf9) Change-Id: I16db684a57a96f138e709008bded4471428944b6 Signed-off-by: Krzysztof Karas <[email protected]> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17693 Reviewed-by: Ben Walker <[email protected]> Reviewed-by: Konrad Sztyber <[email protected]> Tested-by: SPDK CI Jenkins <[email protected]> Reviewed-by: Jim Harris <[email protected]>
- Loading branch information