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

Remove waiting for the remote address of a TensorHandle from within the scope of acquiring a shared lock in RemoteMgr #67703

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented May 16, 2024

Remove waiting for the remote address of a TensorHandle from within the scope of acquiring a shared lock in RemoteMgr

Waiting for the remote address itself involves acquiring a lock and is independent of acquiring the RemoteMgr's shared lock. Making the first acquisition nested inside the second should not be done. This may lead to deadlocks.

@copybara-service copybara-service bot changed the title Remove the possibility of waiting for the remote address of a TensorHandle from within the scope of acquiring a shared lock in RemoteMgr Remove waiting for the remote address of a TensorHandle from within the scope of acquiring a shared lock in RemoteMgr May 31, 2024
… the scope of acquiring a shared lock in `RemoteMgr`

Waiting for the remote address itself involves acquiring a lock and is independent of acquiring the `RemoteMgr`'s shared lock. Making the first acquisition nested inside the second should not be done. This may lead to deadlocks.

PiperOrigin-RevId: 634150808
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.

None yet

1 participant