]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove 'external=True' in Huawei driver
authorWilson Liu <liuxinguo@huawei.com>
Sat, 23 Jan 2016 02:28:42 +0000 (10:28 +0800)
committerWilson Liu <liuxinguo@huawei.com>
Mon, 1 Feb 2016 02:20:49 +0000 (10:20 +0800)
The 'call' function in Huawei driver use a progress
level lock, this can be replaced with thread level lock.

Closes-Bug: #1536015
Change-Id: Ie8d39164c78b886e3253497ab0936254c586f016

cinder/volume/drivers/huawei/rest_client.py

index 12cd61e5bf63c9f395e505660dad59c2ec795b46..19100152a47e5041cb76b2a359021617c53e3947 100644 (file)
@@ -129,7 +129,7 @@ class RestClient(object):
 
         return device_id
 
-    @utils.synchronized('huawei_cinder_call', external=True)
+    @utils.synchronized('huawei_cinder_call')
     def call(self, url, data=None, method=None):
         """Send requests to server.