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

Scheduler: Consolidate input_requests and tasks behind one lock #338

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

rdaum
Copy link
Owner

@rdaum rdaum commented Jun 24, 2024

Puts the Task list and the set of pending input requests in one single Inner in an RwLock instead of two separate locks.

There was at least the potential for deadlock here.

Puts the Task list and the set of pending input requests in one single
`Inner` in an `RwLock` instead of two separate locks.

There was at least the potential for deadlock here.
@rdaum rdaum requested review from abesto and nnunley June 24, 2024 13:59
@rdaum rdaum self-assigned this Jun 24, 2024
Copy link
Collaborator

@abesto abesto left a comment

Choose a reason for hiding this comment

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

Code looks straightforward and obvious. Naively the change makes sense. Existing tests pass, doesn't make #337 worse (might make it better). Good enough for me!

@abesto abesto mentioned this pull request Jun 24, 2024
@rdaum rdaum merged commit aef4c02 into main Jun 24, 2024
7 checks passed
@rdaum rdaum deleted the rd/consolidate-lock branch July 6, 2024 02:51
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.

2 participants