dmaengine: bcm-sba-raid: Increase number of free sba_request
authorAnup Patel <anup.patel@broadcom.com>
Tue, 22 Aug 2017 09:56:57 +0000 (15:26 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 28 Aug 2017 11:14:24 +0000 (16:44 +0530)
commit5346aafcefb5300921e3bc2d48e48f2103943d58
tree18871e0008eed26dc0b5961babcd770fdcb72cd4
parent5655e00f5cde2c856c80eb10d0e6c911b7d880f2
dmaengine: bcm-sba-raid: Increase number of free sba_request

Currently, we have only 1024 free sba_request created
by sba_prealloc_channel_resources(). This is too low
and the prep_xxx() callbacks start failing more often
at time of RAID array setup over NVMe disks.

This patch sets number of free sba_request created by
sba_prealloc_channel_resources() to be:
<number_of_mailbox_channels> x 8192

Due to above, we will have sufficient number of free
sba_request and prep_xxx() callbacks failing is very
unlikely.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/bcm-sba-raid.c