Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ABBA deadlock in flow controller core [12394] #2175

Merged
merged 3 commits into from
Sep 14, 2021
Merged

Conversation

richiware
Copy link
Member

RTPSMessageGroup used by the flow controller could lead in a ABBA deadlock when the sender is changed. This PR fixes this. Instead of use the writer's mutex, the LocatorSelectorSender has its own mutex.

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
@richiware richiware changed the title Fix ABBA deadlock in flow controller core Fix ABBA deadlock in flow controller core [12394] Aug 31, 2021
@EduPonz EduPonz added this to the v2.4.0 milestone Sep 9, 2021
Signed-off-by: Ricardo González <ricardo@richiware.dev>
Copy link
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small nit

Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
Copy link
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with green CI!

@MiguelCompany MiguelCompany merged commit c2c3486 into master Sep 14, 2021
@MiguelCompany MiguelCompany deleted the feature/12393 branch September 14, 2021 05:38
SamuelWHalodi pushed a commit to SamuelWHalodi/Fast-DDS that referenced this pull request Oct 4, 2021
* Refs #12393. Fix deadlock in flow controller core

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>

* Refs #12394. Fix compilation on tests

Signed-off-by: Ricardo González <ricardo@richiware.dev>

* Apply suggestion

Co-authored-by: Miguel Company <miguelcompany@eprosima.com>

Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
Signed-off-by: Samuel Wilhelmsson <samuel@halodi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants