scsi: megaraid_sas: Rework device add code in AEN path
authorShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Tue, 29 Jan 2019 09:38:13 +0000 (01:38 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Feb 2019 03:52:20 +0000 (22:52 -0500)
commit44abbaf64b5d8feae04c9cb5bdc60d6c22da3035
tree0b8558806b33bad0e89b5b2be8ea983fdc3bae20
parentdaa0681118c9f4fc4afffb3757a1e085fba2d069
scsi: megaraid_sas: Rework device add code in AEN path

In preparation of adding support for the DEVICE_LIST DCMD, this patch
refactors the code in the AEN event handling path.  Add new function to
update the PD and LD list in driver.  Move the code to scan PD and VD
channels into separate function.

Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_base.c