There is no distinction between Read/Write locks for resctrl from libvirt's
point of view any more.
Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
src/util/virresctrl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c
index 2129630a190f..954e4fd506f7 100644
--- a/src/util/virresctrl.c
+++ b/src/util/virresctrl.c
@@ -454,7 +454,7 @@ VIR_ONCE_GLOBAL_INIT(virResctrl);
/* Common functions */
static int
-virResctrlLockWrite(void)
+virResctrlLock(void)
{
#ifndef WIN32
@@ -2404,7 +2404,7 @@ virResctrlAllocCreate(virResctrlInfoPtr resctrl,
if (STREQ(alloc->path, SYSFS_RESCTRL_PATH))
return 0;
- lockfd = virResctrlLockWrite();
+ lockfd = virResctrlLock();
if (lockfd < 0)
goto cleanup;
@@ -2597,7 +2597,7 @@ virResctrlMonitorCreate(virResctrlMonitorPtr monitor,
if (virResctrlMonitorDeterminePath(monitor, machinename) < 0)
return -1;
- lockfd = virResctrlLockWrite();
+ lockfd = virResctrlLock();
if (lockfd < 0)
return -1;
--
2.28.0