Whamcloud - gitweb
b=22252 allow multiple instances of the same nid in NID hash.
authorOleg Drokin <green@linuxhacker.ru>
Fri, 23 Jul 2010 09:54:01 +0000 (13:54 +0400)
committerMikhail Pershin <tappro@sun.com>
Mon, 26 Jul 2010 19:50:58 +0000 (23:50 +0400)
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

index 37b6452..f1dbcd2 100644 (file)
@@ -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);