]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph_volume_client: modify locking of meta files
authorRamana Raja <rraja@redhat.com>
Thu, 23 Jun 2016 10:36:53 +0000 (16:06 +0530)
committerRamana Raja <rraja@redhat.com>
Tue, 2 Aug 2016 10:57:57 +0000 (16:27 +0530)
commit7cea0eee455c83fbdd64fff192c6aa10235a2c40
tree968f9463a45bea45e94002deeb6145accc810eda
parente77684fc68cfd3dfb33a80e7c5604356921a40b0
ceph_volume_client: modify locking of meta files

File locks are applied on meta files before updating the meta
file contents. These meta files would need to be cleaned up
sometime, which could lead to locks being held on unlinked meta
files. Prevent this by checking whether the file had been deleted
after lock was acquired on it.

Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit f7c037229bcf3f5a3d06897ec7fe0c5419dd7143)
src/pybind/ceph_volume_client.py