]> 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>
Mon, 18 Jul 2016 10:06:40 +0000 (15:36 +0530)
commitf7c037229bcf3f5a3d06897ec7fe0c5419dd7143
treeefc9ec57a7c1f859dcc118441f3ca5858881b15b
parentf58403f3d19e22edeb8f91b6f87a0b7947b0ff21
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>
src/pybind/ceph_volume_client.py