bdevperf: Outstanding requests array size check
Change-Id: I7bbdff40b23c3d28ae9483690d427f3c4639b651 Signed-off-by: Slawomir Ptak <slawomir.ptak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16877 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
5867f4da7c
commit
652db802f1
@ -1659,6 +1659,11 @@ bdevperf_construct_job(struct spdk_bdev *bdev, struct job_config *config,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (job->verify) {
|
if (job->verify) {
|
||||||
|
if (job->size_in_ios >= UINT32_MAX) {
|
||||||
|
SPDK_ERRLOG("Due to constraints of verify operation, the job storage capacity is too large\n");
|
||||||
|
bdevperf_job_free(job);
|
||||||
|
return -ENOMEM;
|
||||||
|
}
|
||||||
job->outstanding = spdk_bit_array_create(job->size_in_ios);
|
job->outstanding = spdk_bit_array_create(job->size_in_ios);
|
||||||
if (job->outstanding == NULL) {
|
if (job->outstanding == NULL) {
|
||||||
SPDK_ERRLOG("Could not create outstanding array bitmap for bdev %s\n",
|
SPDK_ERRLOG("Could not create outstanding array bitmap for bdev %s\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user