diff options
author | Anup Patel <anup.patel@broadcom.com> | 2017-08-22 11:56:56 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-08-28 13:14:24 +0200 |
commit | 5655e00f5cde2c856c80eb10d0e6c911b7d880f2 (patch) | |
tree | adc764a18c7955eb664e12a2aef903f9dcdbb0a0 /CREDITS | |
parent | dmaengine: bcm-sba-raid: Remove reqs_free_count from sba_device (diff) | |
download | linux-5655e00f5cde2c856c80eb10d0e6c911b7d880f2.tar.xz linux-5655e00f5cde2c856c80eb10d0e6c911b7d880f2.zip |
dmaengine: bcm-sba-raid: Allow arbitrary number free sba_request
Currently, we cannot have any arbitrary number of free sba_request
because sba_prealloc_channel_resources() allocates an array of
sba_request using devm_kcalloc() and kcalloc() cannot provide
memory beyond certain size.
This patch removes "reqs" (sba_request array) from sba_device
and makes "cmds" as variable array (instead of pointer) in
sba_request. This helps sba_prealloc_channel_resources() to
allocate sba_request and associated SBA command in one allocation
which in-turn allows arbitrary number of free sba_request.
Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions