Hyper-V: fix image handling when shared storage is being used
The image cache operation uses thread locks, for which reason it is
prone to race conditions when using shared storage. This is avoided
by using file locks, placed on the shared path.
Change-Id: I2b002993b7ab0973960794bfdd81d4fe57bf7399
Closes-Bug: #1565895
(cherry picked from commit 8c40c4268be57ff2f76cf616b53992b0d32e1fd3)
Reviewed: https:/ /review. openstack. org/403251 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d4ee75c931b ea7b0583db1b8d0 7063fb22034ec6
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit d4ee75c931bea7b 0583db1b8d07063 fb22034ec6
Author: Lucian Petrut <email address hidden>
Date: Thu Jun 16 11:41:20 2016 +0300
Hyper-V: fix image handling when shared storage is being used
The image cache operation uses thread locks, for which reason it is
prone to race conditions when using shared storage. This is avoided
by using file locks, placed on the shared path.
Change-Id: I2b002993b7ab09 73960794bfdd81d 4fe57bf7399 2f76cf616b53992 b0d32e1fd3)
Closes-Bug: #1565895
(cherry picked from commit 8c40c4268be57ff