From 3bbdbcdc2d02a69d666a4e6a913511883a9ecd9c Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Fri, 23 Jul 2010 13:54:01 +0400 Subject: [PATCH] b=22252 allow multiple instances of the same nid in NID hash. 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 i=rread i=johann --- 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 37b6452..f1dbcd2 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -987,9 +987,9 @@ dont_check_exports: req->rq_self, &remote_uuid); if (cfs_hlist_unhashed(&export->exp_nid_hash)) { - cfs_hash_add_unique(export->exp_obd->obd_nid_hash, - &export->exp_connection->c_peer.nid, - &export->exp_nid_hash); + cfs_hash_add(export->exp_obd->obd_nid_hash, + &export->exp_connection->c_peer.nid, + &export->exp_nid_hash); } cfs_spin_lock_bh(&target->obd_processing_task_lock); -- 1.8.3.1