diff options
-rw-r--r-- | fs/ceph/metric.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/metric.c b/fs/ceph/metric.c index c47347d2e84e..9560b7bc6009 100644 --- a/fs/ceph/metric.c +++ b/fs/ceph/metric.c @@ -208,7 +208,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)) { |