Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 088d0917 authored by Atish Kumar Patra's avatar Atish Kumar Patra Committed by Matt Wagantall
Browse files

soc: qcom: glink: Fix race condition for dummy transport deletion



In ssr/unregister_transport scenario, remote disconnect is faked
to all clients and the channels are moved to a dummy transport
to be closed in future. The dummy transport is deleted once all
the channels on it are fully closed. This may lead to a race
condition where the dummy transport can be deleted while some
channels are still being moved to it.

Fix the race condition by first moving the channels to dummy
transport together and fake remote disconnect to the clients
one by one so that dummy transport will be deleted only
after all the channels are closed.

Change-Id: I0a8e78e562594751b2984f4df4d6030c5abb5d41
Signed-off-by: default avatarAtish Kumar Patra <apatra@codeaurora.org>
parent 5fd84676
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment