Skip to content

Commit 5016450

Browse files
lxbszidryomov
authored andcommitted
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>
1 parent 6eaae19 commit 5016450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ceph/metric.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ static void metric_delayed_work(struct work_struct *work)
216216
struct ceph_mds_client *mdsc =
217217
container_of(m, struct ceph_mds_client, metric);
218218

219-
if (mdsc->stopping)
219+
if (mdsc->stopping || disable_send_metrics)
220220
return;
221221

222222
if (!m->session || !check_session_state(m->session)) {

0 commit comments

Comments
 (0)