]> asedeno.scripts.mit.edu Git - linux.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)
commit222e9239c60888b7c9331f4b3d0a99d2f27dca6b
treee0aa27118876bd0b6858b9993c5fdd4b22c5b1c5
parent75508a8b8b2de1b39b72e7dc31505cddc8354a01
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