Skip to content

Commit 4ea1395

Browse files
committed
resctrl: Rename virResctrlLockWrite -> virResctrlLock
There is no distinction between Read/Write locks for resctrl from libvirt's point of view any more. Signed-off-by: Martin Kletzander <[email protected]> Reviewed-by: Andrea Bolognani <[email protected]> Reviewed-by: Ján Tomko <[email protected]>
1 parent c8bb959 commit 4ea1395

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/util/virresctrl.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ VIR_ONCE_GLOBAL_INIT(virResctrl);
456456
#ifndef WIN32
457457

458458
static int
459-
virResctrlLockWrite(void)
459+
virResctrlLock(void)
460460
{
461461
int fd = open(SYSFS_RESCTRL_PATH, O_RDONLY | O_CLOEXEC);
462462

@@ -499,7 +499,7 @@ virResctrlUnlock(int fd)
499499
#else /* WIN32 */
500500

501501
static int
502-
virResctrlLockWrite(void)
502+
virResctrlLock(void)
503503
{
504504
virReportSystemError(ENOSYS, "%s",
505505
_("resctrl locking is not supported "
@@ -2416,7 +2416,7 @@ virResctrlAllocCreate(virResctrlInfoPtr resctrl,
24162416
if (STREQ(alloc->path, SYSFS_RESCTRL_PATH))
24172417
return 0;
24182418

2419-
lockfd = virResctrlLockWrite();
2419+
lockfd = virResctrlLock();
24202420
if (lockfd < 0)
24212421
goto cleanup;
24222422

@@ -2609,7 +2609,7 @@ virResctrlMonitorCreate(virResctrlMonitorPtr monitor,
26092609
if (virResctrlMonitorDeterminePath(monitor, machinename) < 0)
26102610
return -1;
26112611

2612-
lockfd = virResctrlLockWrite();
2612+
lockfd = virResctrlLock();
26132613
if (lockfd < 0)
26142614
return -1;
26152615

0 commit comments

Comments
 (0)