kernel/fs/ceph/metric.c
.. .. @@ -130,7 +130,7 @@ 130 130 struct ceph_mds_client *mdsc = 131 131 container_of(m, struct ceph_mds_client, metric); 132 132 133 - if (mdsc->stopping)133 + if (mdsc->stopping || disable_send_metrics)134 134 return; 135 135 136 136 if (!m->session || !check_session_state(m->session)) {