• Sreekanth Reddy's avatar
    scsi: mpt3sas: Determine smp affinity on per HBA basis · 610ef1e9
    Sreekanth Reddy authored
    Even though 'smp_affinity_enable' module parameter is enabled, if the
    number of online CPUs is bigger than the number of msix vectors enabled on
    that HBA, then smp affinity settings should be disabled only for this HBA.
    
    But currently the smp affinity setting is disabled globally and hence smp
    affinity will be disabled for subsequent HBAs even though number of msix
    vectors enabled for this HBA matches the number of online CPU.
    
    To fix this, define a per HBA variable smp_affinity_enable.  Initially this
    variable is initialized with smp_affinity_enable module parameter value. If
    this HBA has less number of msix vectors configured when compared to number
    of online cpus, then only this HBA's variable smp_affinity_enable is set to
    zero.
    Signed-off-by: default avatarSreekanth Reddy <sreekanth.reddy@broadcom.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    610ef1e9
mpt3sas_base.c 208 KB