Change in vdsm[master]: migration: Add DynamicThrottling semaphores
fromani at redhat.com
fromani at redhat.com
Wed Feb 17 13:26:50 UTC 2016
Francesco Romani has posted comments on this change.
Change subject: migration: Add DynamicThrottling semaphores
......................................................................
Patch Set 3:
(2 comments)
https://gerrit.ovirt.org/#/c/53304/3/tests/vmUtilsTests.py
File tests/vmUtilsTests.py:
Line 209: self.sem._value
> so e.g. expose read-only property for the semaphore value?
maybe better some new method like trylock
or just try here with blocking=False
the value should never be exposed in any way IMO, exactly because it _is_ the implementation detail.
https://gerrit.ovirt.org/#/c/53304/3/vdsm/virt/utils.py
File vdsm/virt/utils.py:
Line 237: # if we are increasing the bound we need to do this outside of
: # context manager otherwise release() would deadlock since it also
: # tries to obtain the lock
> you mean explicitly check if set_bound is called with the semaphore being h
it is fine if is a note to self. Maybe just mark it as such like
# implementation note: if we...
--
To view, visit https://gerrit.ovirt.org/53304
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I67376d0bd990f89e0a013887cef1a0cb05fb855d
Gerrit-PatchSet: 3
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Betak <mbetak at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Betak <mbetak at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
Gerrit-HasComments: Yes
More information about the vdsm-patches
mailing list