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: [email protected] Signed-off-by: Xiubo Li <[email protected]> Reviewed-by: Venky Shankar <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
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)