ceph: never send metrics if disable_send_metrics is set
commit 50164507f6b7b7ed85d8c3ac0266849fbd908db7 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: 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8ab9ad1638
commit
e046aecb73
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ static void metric_delayed_work(struct work_struct *work)
|
||||||
struct ceph_mds_client *mdsc =
|
struct ceph_mds_client *mdsc =
|
||||||
container_of(m, struct ceph_mds_client, metric);
|
container_of(m, struct ceph_mds_client, metric);
|
||||||
|
|
||||||
if (mdsc->stopping)
|
if (mdsc->stopping || disable_send_metrics)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!m->session || !check_session_state(m->session)) {
|
if (!m->session || !check_session_state(m->session)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue