]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
NetApp: Fix race condition in 7-mode iSCSI driver with DFM.
authorRushi Agrawal <rushi.agr@gmail.com>
Wed, 27 Feb 2013 11:37:41 +0000 (06:37 -0500)
committerRushi Agrawal <rushi.agr@gmail.com>
Tue, 26 Feb 2013 06:30:39 +0000 (12:00 +0530)
commit3cff1cb24f7627dd913ce02a0f62c7ef85b5c37c
tree2d820f1033d64cb803b9ca19d2a155c48e7e9c5e
parentb3aa7988d8bc092eb296b8abff71b6fe939ab1c8
NetApp: Fix race condition in 7-mode iSCSI driver with DFM.

A race condition was discovered in the driver while creating
or deleting multiple volumes in a very short interval of time
(can be reproduced by making successive API calls to Cinder).
This fix decorates the methods responsible for race condition
with a synchronized() decorator. The problem was with the
management software: DFM, and in principle, there should not
be two processes trying to modify the DFM dataset object at
the same time. This patch prevents from such a possibility.

Fixes bug 1091480

Change-Id: I11cfc8868171acec356f4140aba52b8078d109df
cinder/volume/drivers/netapp/iscsi.py