Merge "Remove locks in XfrmController"
diff --git a/server/XfrmController.cpp b/server/XfrmController.cpp
index 99742ec..996c9ec 100644
--- a/server/XfrmController.cpp
+++ b/server/XfrmController.cpp
@@ -386,8 +386,6 @@
const std::string& cryptAlgo, const std::vector<uint8_t>& cryptKey, int32_t cryptTruncBits,
const std::string& aeadAlgo, const std::vector<uint8_t>& aeadKey, int32_t aeadIcvBits,
int32_t encapType, int32_t encapLocalPort, int32_t encapRemotePort) {
- android::RWLock::AutoWLock lock(mLock);
-
ALOGD("XfrmController::%s, line=%d", __FUNCTION__, __LINE__);
ALOGD("transformId=%d", transformId);
ALOGD("mode=%d", mode);
diff --git a/server/XfrmController.h b/server/XfrmController.h
index 267edde..7e508a0 100644
--- a/server/XfrmController.h
+++ b/server/XfrmController.h
@@ -26,7 +26,6 @@
#include <linux/udp.h>
#include <linux/xfrm.h>
#include <sysutils/SocketClient.h>
-#include <utils/RWLock.h>
#include "NetdConstants.h"
#include "netdutils/Status.h"
@@ -194,9 +193,6 @@
};
private:
- // prevent concurrent modification of XFRM
- android::RWLock mLock;
-
/*
* Below is a redefinition of the xfrm_usersa_info struct that is part
* of the Linux uapi <linux/xfrm.h> to align the structures to a 64-bit