Please consider these points:
About "Send event PORTE_BROADCAST_RCVD for valid ports":
Maybe say "Insert PORTE_BROADCAST_RCVD event for resuming host", as
"valid ports" is a little vague. And the point is that we can to rescan
when we resume.
On 17/11/2021 02:45, chenxiang wrote:
From: Xiang Chen<chenxiang66@xxxxxxxxxxxxx>
If inserting a new disk for expander, the disk will not be revalidated
as the topology is not re-scanned during the resume process. So send event
PORTE_BROADCAST_RCVD to identify some new inserted disks for expander.
If a new disk is inserted through an expander when the host was
suspended, they 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.
Signed-off-by: Xiang Chen<chenxiang66@xxxxxxxxxxxxx>
Reviewed-by: John Garry<john.garry@xxxxxxxxxx>