Skip to content

Commit e046aec

Browse files
lxbszgregkh
authored andcommitted
ceph: never send metrics if disable_send_metrics is set
commit 5016450 upstream. 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8ab9ad1 commit e046aec

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
@@ -208,7 +208,7 @@ static void metric_delayed_work(struct work_struct *work)
208208
struct ceph_mds_client *mdsc =
209209
container_of(m, struct ceph_mds_client, metric);
210210

211-
if (mdsc->stopping)
211+
if (mdsc->stopping || disable_send_metrics)
212212
return;
213213

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

0 commit comments

Comments
 (0)