From: tappro Date: Sat, 14 Oct 2006 23:52:58 +0000 (+0000) Subject: - don't count self-export as stale export X-Git-Tag: v1_8_0_110~486^2~525 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=19117260c87abc73d47c4dbfca28b4d9eccae969;p=fs%2Flustre-release.git - don't count self-export as stale export --- 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,