Skip to content

Commit

Permalink
PWX-33631: Remove global lock on getRemoteConn (libopenstorage#2339)
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Griffiths <[email protected]>
  • Loading branch information
Grant Griffiths committed Sep 19, 2023
1 parent 7c2452f commit a7ff842
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions csi/csi.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@ func (s *OsdCsiServer) getConn() (*grpc.ClientConn, error) {
}

func (s *OsdCsiServer) getRemoteConn(ctx context.Context) (*grpc.ClientConn, error) {
s.mu.Lock()
defer s.mu.Unlock()

remoteConn, _, err := s.roundRobinBalancer.GetRemoteNodeConnection(ctx)
return remoteConn, err
}
Expand Down

0 comments on commit a7ff842

Please sign in to comment.