summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2023-07-20 05:33:55 +0200
committerIlya Dryomov <idryomov@gmail.com>2023-07-24 13:15:39 +0200
commit50164507f6b7b7ed85d8c3ac0266849fbd908db7 (patch)
tree159ba1ace6ec5eada4fd5d4165b97c356843d8b1 /fs/ceph
parentLinux 6.5-rc3 (diff)
downloadlinux-50164507f6b7b7ed85d8c3ac0266849fbd908db7.tar.xz
linux-50164507f6b7b7ed85d8c3ac0266849fbd908db7.zip
ceph: never send metrics if disable_send_metrics is set
Even the 'disable_send_metrics' is true so when the session is being opened it will always trigger to send the metric for the first time. Cc: stable@vger.kernel.org Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Venky Shankar <vshankar@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/metric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/metric.c b/fs/ceph/metric.c
index cce78d769f55..6d3584f16f9a 100644
--- a/fs/ceph/metric.c
+++ b/fs/ceph/metric.c
@@ -216,7 +216,7 @@ static void metric_delayed_work(struct work_struct *work)
struct ceph_mds_client *mdsc =
container_of(m, struct ceph_mds_client, metric);
- if (mdsc->stopping)
+ if (mdsc->stopping || disable_send_metrics)
return;
if (!m->session || !check_session_state(m->session)) {