• Anup Patel's avatar
    dmaengine: bcm-sba-raid: Increase number of free sba_request · 5346aafc
    Anup Patel authored
    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: default avatarAnup Patel <anup.patel@broadcom.com>
    Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
    5346aafc
bcm-sba-raid.c 48.7 KB