Skip to content

Conversation

tklauser
Copy link
Member

Unexport (*IPCache).DumpToListenerLocked (which requires locking the IPCache mutex) and remove the now unused public Lock and Unlock methods.

See commit messages for details.

tklauser added 2 commits July 23, 2025 11:01
This is not called from outside the package. Since it requires locking
the IPCache mutex it's safer to have it unexported.

Also change the internal uses of the public (*IPCache).RLock/RUnlock to
the internal (*IPCache).mutex.RLock/RUnlock interface.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
Since the last commit, these are not used anywhere in- or outside the
package anymore. If they were, this would likely be an anti-pattern
because it could easily lead to deadlocks.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser requested a review from a team as a code owner July 23, 2025 09:03
@tklauser tklauser added the kind/cleanup This includes no functional changes. label Jul 23, 2025
@tklauser tklauser requested a review from jrajahalme July 23, 2025 09:03
@tklauser tklauser added the release-note/misc This PR makes changes that have no direct user impact. label Jul 23, 2025
@tklauser
Copy link
Member Author

/test

@tklauser tklauser enabled auto-merge July 23, 2025 09:03
@tklauser tklauser added this pull request to the merge queue Jul 28, 2025
Merged via the queue into main with commit 0dec324 Jul 28, 2025
327 of 329 checks passed
@tklauser tklauser deleted the pr/tklauser/ipcache-unexport branch July 28, 2025 18:16
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup This includes no functional changes. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants