]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Resize cpu maps structures based on possible cpus
authorJames Smart <jsmart2021@gmail.com>
Mon, 28 Jan 2019 19:14:35 +0000 (11:14 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Feb 2019 03:29:50 +0000 (22:29 -0500)
commitc09cb6d586d1a653cd396e8bcca59037283a622d
treee0aa27118876bd0b6858b9993c5fdd4b22c5b1c5
parent6974f33c0b9581577866cdc4bcca957d71367d7b
scsi: lpfc: Resize cpu maps structures based on possible cpus

The work done to date utilized the number of present cpus when sizing
per-cpu structures. Structures should have been sized based on the max
possible cpu count.

Convert the driver over to possible cpu count for sizing allocation.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_nvmet.c
drivers/scsi/lpfc/lpfc_sli4.h