From 05a07748b6005fed86eb100f31aa5117d832515c Mon Sep 17 00:00:00 2001 From: panda Date: Thu, 3 Dec 2009 16:55:49 +0000 Subject: [PATCH] b=21477 i=Johann disable pinger when appropriate --- lustre/obdecho/echo_client.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lustre/obdecho/echo_client.c b/lustre/obdecho/echo_client.c index 6c99cd4..500488d 100644 --- a/lustre/obdecho/echo_client.c +++ b/lustre/obdecho/echo_client.c @@ -1348,8 +1348,14 @@ echo_client_setup(struct obd_device *obddev, obd_count len, void *buf) rc = obd_connect(&conn, tgt, &echo_uuid, ocd, &ec->ec_exp); } else { rc = obd_connect(&conn, tgt, &echo_uuid, ocd, NULL); - if (rc == 0) + if (rc == 0) { ec->ec_exp = class_conn2export(&conn); + + /* Turn off pinger because it connects to tgt obd directly */ + spin_lock(&tgt->obd_dev_lock); + list_del_init(&ec->ec_exp->exp_obd_chain_timed); + spin_unlock(&tgt->obd_dev_lock); + } } OBD_FREE(ocd, sizeof(*ocd)); -- 1.8.3.1