]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
GlusterFS: Fix deadlock in volume clone
authorEric Harney <eharney@redhat.com>
Thu, 23 Jan 2014 16:57:17 +0000 (11:57 -0500)
committerEric Harney <eharney@redhat.com>
Thu, 23 Jan 2014 22:15:44 +0000 (17:15 -0500)
commite9722f09dfd4b58e40afbf285ab9a7738a641dca
tree70fc1b8f217fbd49ad2268d7f4e4a34cf9e5ceb4
parentd6f7101f2d76aa8750c23a67ea030f8a9c32eb25
GlusterFS: Fix deadlock in volume clone

The create_cloned_volume path could deadlock due to
create_cloned_volume and create/delete_snapshot using the same
lock for synchronization.

Refactor the calls to create/delete snapshot to call the inner
method which does not use a lock.

Introduced by "06999f6 GlusterFS: Synchronize additional op..."

Related-Bug: 1267983
Closes-Bug: 1272092

Change-Id: I84ca34b201c10644faa047f1c9274c14bcdd0359
cinder/tests/test_glusterfs.py
cinder/volume/drivers/glusterfs.py