From: Oleg Drokin Date: Fri, 23 Jul 2010 09:54:01 +0000 (+0400) Subject: b=22252 allow multiple instances of the same nid in NID hash. X-Git-Tag: 2.0.0.51~5 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=3bbdbcdc2d02a69d666a4e6a913511883a9ecd9c;ds=sidebyside 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 --- 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);