scsi: libsas: Insert PORTE_BROADCAST_RCVD event for resuming host
authorXiang Chen <chenxiang66@hisilicon.com>
Mon, 20 Dec 2021 11:21:30 +0000 (19:21 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Dec 2021 04:38:30 +0000 (23:38 -0500)
commite31e18128eb9dbcda8c169cb33421ae4813afa71
tree1c9ce00bd0a449dd870b72ff390e1ed239df0cd6
parent133b688b2d03f7ae2a6c9d344f92c1949ec05a51
scsi: libsas: Insert PORTE_BROADCAST_RCVD event for resuming host

If a new disk is inserted through an expander when the host was suspended,
it will not necessarily be detected as the topology is not re-scanned
during resume.  To detect possible changes in topology during suspension,
insert a PORTE_BROADCAST_RCVD event per port when resuming to trigger a
revalidation.

Link: https://lore.kernel.org/r/1639999298-244569-8-git-send-email-chenxiang66@hisilicon.com
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_init.c