New patch submitted by Eduardo Warszawski (ewarszaw(a)redhat.com)
You can review this change at:
http://gerrit.usersys.redhat.com/636
commit d6c647833d6c6d44cff5ab9411b8caad624c0bf9
Author: Eduardo Warszawski <ewarszaw(a)redhat.com>
Date: Wed Jun 29 18:52:31 2011 +0300
BZ#717658 - Remove unnecessary SDF.refreshStorage().
Change-Id: I7de05de83f17a14895c150c331e971f35d7ae547
diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index 2aaf822..0e7631b 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -756,15 +756,6 @@ class HSM:
"""
vars.task.setDefaultException(se.BlockDeviceActionError("GUID: %s" %
str(guid)))
#getSharedLock(connectionsResource...)
- rescan = True
- try:
- if options:
- rescan = options.get("rescan", True)
- except:
- self.log.warning("ignore options %s" % (str(options)))
- if rescan:
- SDF.refreshStorage()
-
try:
devInfo = self._getDeviceList(guids=[guid])[0]
for p in devInfo["pathstatus"]: