From 704c701760be8501a2bd00677c994a6268256e78 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Tue, 6 Apr 2010 11:44:30 +0200 Subject: [PATCH] b=22252 allow multiple instances of the same nid in NID hash i=robert i=johann Case of multiple separate clients from the same NID (as with liblustre) is legitimate and so we should allow multiple instances of the same NID in nid hash. --- lustre/ldlm/ldlm_lib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 4c8a02b..f8d53d0 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -1031,9 +1031,9 @@ no_export: &remote_uuid); if (hlist_unhashed(&export->exp_nid_hash)) { - lustre_hash_add_unique(export->exp_obd->obd_nid_hash, - &export->exp_connection->c_peer.nid, - &export->exp_nid_hash); + lustre_hash_add(export->exp_obd->obd_nid_hash, + &export->exp_connection->c_peer.nid, + &export->exp_nid_hash); } if (lustre_msg_get_op_flags(req->rq_repmsg) & MSG_CONNECT_RECONNECT) { -- 1.8.3.1