From: alex Date: Tue, 31 May 2005 10:10:25 +0000 (+0000) Subject: - show nid for stale clients X-Git-Tag: 1.4.10~1066 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1e0bb162cfedc4ab029ea604a10d65c078195307;p=fs%2Flustre-release.git - show nid for stale clients --- diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index e0ffba5..ca55015 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -745,6 +745,7 @@ int class_disconnect_stale_exports(struct obd_device *obd, int (*test_export)(struct obd_export *), unsigned long flags) { + char str[PTL_NALFMT_SIZE]; struct list_head work_list; struct list_head *pos, *n; struct obd_export *exp; @@ -759,8 +760,9 @@ int class_disconnect_stale_exports(struct obd_device *obd, list_del(&exp->exp_obd_chain); list_add(&exp->exp_obd_chain, &work_list); cnt++; - CDEBUG(D_ERROR, "%s: disconnect stale client %s\n", - obd->obd_name, exp->exp_client_uuid.uuid); + ptlrpc_peernid2str(&exp->exp_connection->c_peer, str); + CDEBUG(D_ERROR, "%s: disconnect stale client %s@%s\n", + obd->obd_name, exp->exp_client_uuid.uuid, str); } } spin_unlock(&obd->obd_dev_lock);