]> git.ipfire.org Git - thirdparty/libvirt.git/commit
resctrl: Use exclusive lock for /sys/fs/resctrl
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 10 Jul 2020 13:13:56 +0000 (15:13 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 3 Aug 2020 08:57:47 +0000 (10:57 +0200)
commitfa44bc8fd074d00d5cc7fe16f31da40487ee2804
treedaad16c9c69b3bf2befe40f70ba39022dfc72ed5
parente648616a6a64c6efa565ed7189ef59bab8858f51
resctrl: Use exclusive lock for /sys/fs/resctrl

That's the way it should've been all the time.  It was originally the case, but
then the rework to virFileFlock() made the function ambiguous when it was
created in commit 5a0a5f7fb5f5, and due to that it was misused in commit
657ddeff2313 and since then the lock being taken was shared rather than
exclusive.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virresctrl.c