Skip to content

Commit c73d099

Browse files
mittachaituk8s-infra-cherrypick-robot
authored andcommitted
fix: remove global lock from azurefile proxy service
This commit removes global lock from azurefile proxy service. Since there is already a volumeID level lock in csi node driver and this global lock seems to be unnecessary. Signed-off-by: Mitta Sai Chaithanya <mittas@microsoft.com>
1 parent 8d75eca commit c73d099

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pkg/azurefile-proxy/server/server.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"fmt"
2222
"net"
2323
"strings"
24-
"sync"
2524

2625
grpcprom "github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus"
2726
"google.golang.org/grpc"
@@ -30,10 +29,6 @@ import (
3029
mount_azurefile "sigs.k8s.io/azurefile-csi-driver/pkg/azurefile-proxy/pb"
3130
)
3231

33-
var (
34-
mutex sync.Mutex
35-
)
36-
3732
type MountServer struct {
3833
mount_azurefile.UnimplementedMountServiceServer
3934

@@ -52,8 +47,6 @@ func NewMountServiceServer() *MountServer {
5247
func (server *MountServer) MountAzureFile(_ context.Context,
5348
req *mount_azurefile.MountAzureFileRequest,
5449
) (resp *mount_azurefile.MountAzureFileResponse, err error) {
55-
mutex.Lock()
56-
defer mutex.Unlock()
5750

5851
source := req.GetSource()
5952
target := req.GetTarget()

0 commit comments

Comments
 (0)