From: Xiubo Li Date: Thu, 20 Jul 2023 03:33:55 +0000 (+0800) Subject: ceph: never send metrics if disable_send_metrics is set X-Git-Tag: v6.6.7~2283^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50164507f6b7b7ed85d8c3ac0266849fbd908db7;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Venky Shankar Reviewed-by: Jeff Layton Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/metric.c b/fs/ceph/metric.c index cce78d7..6d3584f 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)) {