Whamcloud - gitweb
branch HEAD
authorzhanghc <zhanghc>
Tue, 11 Nov 2008 07:12:49 +0000 (07:12 +0000)
committerzhanghc <zhanghc>
Tue, 11 Nov 2008 07:12:49 +0000 (07:12 +0000)
b=17176

fixed a bug in 14774 patch -- compare peer's nid instead of self's nid
in ptlrpc_connection during select failover MDS/OST nodes

i=deen

lustre/ptlrpc/import.c

index e3891d1..4ffa92c 100644 (file)
@@ -727,8 +727,8 @@ static void ptlrpc_maybe_ping_import_soon(struct obd_import *imp)
          * to have two identical connections in imp_conn_list. We must
          * compare not conn's pointers but NIDs, otherwise we can defeat
          * connection throttling. (See bug 14774.) */
-        if (imp->imp_conn_current->oic_conn->c_self !=
-                                imp_conn->oic_conn->c_self) {
+        if (imp->imp_conn_current->oic_conn->c_peer.nid !=
+                                imp_conn->oic_conn->c_peer.nid) {
                 ptlrpc_ping_import_soon(imp);
                 wake_pinger = 1;
         }