Whamcloud - gitweb
Branch HEAD
authorjohann <johann>
Tue, 5 May 2009 17:21:21 +0000 (17:21 +0000)
committerjohann <johann>
Tue, 5 May 2009 17:21:21 +0000 (17:21 +0000)
b=18674
i=shadow
i=bobijam

print the correct number of active rpcs when denying reconnection.

lustre/ldlm/ldlm_lib.c

index cb38fb4..c394253 100644 (file)
@@ -802,10 +802,11 @@ no_export:
                 GOTO(out, rc = -EBUSY);
         } else if (req->rq_export != NULL &&
                    (atomic_read(&export->exp_rpc_count) > 1)) {
+                /* the current connect rpc has increased exp_rpc_count */
                 CWARN("%s: refuse reconnection from %s@%s to 0x%p/%d\n",
                       target->obd_name, cluuid.uuid,
                       libcfs_nid2str(req->rq_peer.nid),
-                      export, atomic_read(&export->exp_rpc_count));
+                      export, atomic_read(&export->exp_rpc_count) - 1);
                 GOTO(out, rc = -EBUSY);
         } else if (lustre_msg_get_conn_cnt(req->rq_reqmsg) == 1) {
                 CERROR("%s: NID %s (%s) reconnected with 1 conn_cnt; "