Federico Simoncelli has posted comments on this change.
Change subject: block: use the contextmanager for mapMetaOffset ......................................................................
Patch Set 1:
(1 comment)
http://gerrit.ovirt.org/#/c/25988/1/vdsm/storage/blockSD.py File vdsm/storage/blockSD.py:
Line 735: Line 736: _mdSlotLock = threading.Lock() Line 737: Line 738: @contextmanager Line 739: def mapMetaOffset(self, vol_name, slotSize): acquireNewMetaOffset? Line 740: with self._mdSlotLock: Line 741: if self.getVersion() in VERS_METADATA_LV: Line 742: yield self.getVolumeMetadataOffsetFromPvMapping(vol_name) Line 743: else: