Currently it's possible for extend_volume in lvm to return
from the deactivate_lv call and try to extend the volume before
the lv has actually been deactivated. This patch adds logic to
make sure that the lv is deactivated before returning from
deactivate_lv.
Reviewed: https:/ /review. openstack. org/340655 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=4373e98fa08 81c0bf6fa747e05 742143402f4c39
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4373e98fa0881c0 bf6fa747e057421 43402f4c39
Author: Nate Potter <email address hidden>
Date: Tue Jul 12 03:55:26 2016 +0000
Remove race condition from lvextend
Currently it's possible for extend_volume in lvm to return
from the deactivate_lv call and try to extend the volume before
the lv has actually been deactivated. This patch adds logic to
make sure that the lv is deactivated before returning from
deactivate_lv.
Change-Id: Ifc9dcb20e17c60 a835e9f3b38c5bf fd836fa5188
Closes-bug: #1495560