From 54c3bb55312a06e9e230f806b8269b089ca81121 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 9 Jul 2019 18:52:38 +0530 Subject: [PATCH] qa/cephfs: memoize FUSE client pid Save client PID so that we avoid calling get_client_pid() every now and then. This, more importantly, allows sending SIGCONT to client which is already stopped using SIGKILL. Signed-off-by: Rishabh Dave --- qa/tasks/cephfs/fuse_mount.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qa/tasks/cephfs/fuse_mount.py b/qa/tasks/cephfs/fuse_mount.py index 0c0c84b7537..bbd56b3c57c 100644 --- a/qa/tasks/cephfs/fuse_mount.py +++ b/qa/tasks/cephfs/fuse_mount.py @@ -166,6 +166,7 @@ class FuseMount(CephFSMount): def gather_mount_info(self): status = self.admin_socket(['status']) self.id = status['id'] + self.client_pid = status['metadata']['pid'] try: self.inst = status['inst_str'] self.addr = status['addr_str'] -- 2.39.5