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

videoroom: always take room mutex before streams mutex (see #3463) #3474

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

atoppi
Copy link
Member

@atoppi atoppi commented Nov 4, 2024

This patch tries to fix the mutex order reversal discussed in #3463.
We tried to enforce the order videoroom->mutex ---> publisher/subscriber->streams_mutex.

This is highly experimental and poorly tested, pinging @spscream since we know they stress a lot those critical paths subject to deadlocking.

@spscream
Copy link
Contributor

spscream commented Nov 7, 2024

we tested it since yesterday, no hangs yet. Deploying to more servers for test

@brave44
Copy link
Contributor

brave44 commented Nov 9, 2024

@atoppi we tested it for two days on production and have no problems, so I think this time fix is on point, thanks! Waiting for merging now so we can use master again.

@lminiero
Copy link
Member

Thanks for the feedback, merging then!

@lminiero lminiero merged commit dadc2ab into master Nov 12, 2024
8 checks passed
@lminiero lminiero deleted the fix/vr-mutex-order-1x branch November 12, 2024 09:32
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.

4 participants