qcacmn: Delete all peers during SSR

During SSR in dp_vdev_flush_peers function, the else condition finds peers
to delete by calling dp_peer_find_by_id. If the delete_in_progress_ flag
has already been set to TRUE, then dp_peer_find_by_id will return NULL
and not delete the vdev object. Calling __dp_peer_find_by_id will always
return peer id so all peers are sure to be deleted.

Change-Id: I86bf2bdda7ebc5a9c2f4bbc877392ebff9cbaf59
CRs-Fixed: 2513104
This commit is contained in:
Saket Jha 2019-09-10 13:33:02 -07:00 • committed by nshrivas
commit 52e54333f4

View file

@ -4828,7 +4828,7 @@ static void dp_vdev_flush_peers(struct cdp_vdev *vdev_handle, bool unmap_only)
0);
}
} else {
peer = dp_peer_find_by_id(soc, peer_ids[i]);
peer = __dp_peer_find_by_id(soc, peer_ids[i]);
if (peer) {
dp_info("peer: %pM is getting flush",