Whamcloud - gitweb
b=22252 allow multiple instances of the same nid in NID hash
authorOleg Drokin <oleg.drokin@sun.com>
Tue, 6 Apr 2010 09:44:30 +0000 (11:44 +0200)
committerJohann Lombardi <johann@sun.com>
Tue, 6 Apr 2010 09:44:30 +0000 (11:44 +0200)
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

index 4c8a02b..f8d53d0 100644 (file)
@@ -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) {