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

PWX-33631: Remove global lock on getRemoteConn #2339

Merged

Conversation

ggriffiths
Copy link
Contributor

What this PR does / why we need it:
We were taking two redundant locks: One inside of pkg/loadbalancer and once inside of the CSI function that called into pkg/loadbalancer. This removes the CSI lock.

Which issue(s) this PR fixes (optional)
Closes #

Special notes for your reviewer:

@ggriffiths
Copy link
Contributor Author

Ran PVC longevity script for 10mins, all is good:

persistentvolumeclaim/px-nginx-pvc-sharedv4-29 created
persistentvolumeclaim/px-nginx-pvc-sharedv4-3 created
persistentvolumeclaim/px-nginx-pvc-sharedv4-30 created
persistentvolumeclaim/px-nginx-pvc-sharedv4-4 created
persistentvolumeclaim/px-nginx-pvc-sharedv4-5 created
persistentvolumeclaim/px-nginx-pvc-sharedv4-6 created
persistentvolumeclaim/px-nginx-pvc-sharedv4-7 created
persistentvolumeclaim/px-nginx-pvc-sharedv4-8 created
persistentvolumeclaim/px-nginx-pvc-sharedv4-9 created
storageclass.storage.k8s.io/px-nginx-sc-v4 unchanged
only 0/30 ready. Checking again in 5s...
only 4/30 ready. Checking again in 5s...
only 13/30 ready. Checking again in 5s...
30/30 ready. Cleaning up now...
persistentvolumeclaim "px-nginx-pvc-sharedv4-1" deleted
persistentvolumeclaim "px-nginx-pvc-sharedv4-10" deleted
persistentvolumeclaim "px-nginx-pvc-sharedv4-11" deleted
persistentvolumeclaim "px-nginx-pvc-sharedv4-12" deleted
persistentvolumeclaim "px-nginx-pvc-sharedv4-13" deleted
persistentvolumeclaim "px-nginx-pvc-sharedv4-14" deleted

@ggriffiths ggriffiths merged commit cc1276c into libopenstorage:master Sep 14, 2023
5 checks passed
ggriffiths pushed a commit to ggriffiths/openstorage that referenced this pull request Sep 19, 2023
ggriffiths pushed a commit that referenced this pull request Sep 19, 2023
* PWX-33631: Hold round-robin lock only when needed (#2335)

Signed-off-by: Grant Griffiths <[email protected]>

* PWX-33631: Remove global lock on getRemoteConn (#2339)

Signed-off-by: Grant Griffiths <[email protected]>

---------

Signed-off-by: Grant Griffiths <[email protected]>
ggriffiths pushed a commit to ggriffiths/openstorage that referenced this pull request Sep 19, 2023
ggriffiths pushed a commit that referenced this pull request Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants