From 19117260c87abc73d47c4dbfca28b4d9eccae969 Mon Sep 17 00:00:00 2001 From: tappro Date: Sat, 14 Oct 2006 23:52:58 +0000 Subject: [PATCH] - don't count self-export as stale export --- lustre/obdclass/genops.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index 0d89aea..2b36ca5 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -960,6 +960,11 @@ int class_disconnect_stale_exports(struct obd_device *obd, list_del(&exp->exp_obd_chain); list_add(&exp->exp_obd_chain, &work_list); + /* don't count self-export as client */ + if (obd_uuid_equals(&exp->exp_client_uuid, + &exp->exp_obd->obd_uuid)) + continue; + cnt++; CDEBUG(D_ERROR, "%s: disconnect stale client %s@%s\n", obd->obd_name, exp->exp_client_uuid.uuid, -- 1.8.3.1