]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr / volumes: maintain connection pool for fs volumes
authorVenky Shankar <vshankar@redhat.com>
Mon, 17 Jun 2019 09:36:54 +0000 (05:36 -0400)
committerRamana Raja <rraja@redhat.com>
Wed, 17 Jul 2019 10:07:37 +0000 (15:37 +0530)
commit64b5c0aa8eaebd31bde0a546ffbc4471147da666
tree49f18c43fd0d56b084afa6f8cd3695a157a62f3f
parentbb9048a7b0ae4ee807e539ef760b31093ad3bad8
mgr / volumes: maintain connection pool for fs volumes

Right now every [sub]volume call does a connect/disconnect to the
cephfs filesystem. This is unnecessary and can be optimized by
caching the filesystem handle in a connection pool and (re)using
the handle for subsequent [sub]volume operations.

This would be useful for implementing features such as purge queue
for asynchronous subvolume deletes.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 5c41e949af9acabd612b0644de0603e374b4b42a)
src/pybind/mgr/volumes/fs/subvolume.py
src/pybind/mgr/volumes/fs/volume.py
src/pybind/mgr/volumes/module.py