Whamcloud - gitweb
b=1995: simple recovery-progress/state reporting, in lieu of the CERROR spew.
authorshaver <shaver>
Mon, 22 Sep 2003 12:00:53 +0000 (12:00 +0000)
committershaver <shaver>
Mon, 22 Sep 2003 12:00:53 +0000 (12:00 +0000)
r=phil, more to come post-LLP.

lustre/ldlm/ldlm_lib.c

index 4f9f5fb..81a283d 100644 (file)
@@ -298,6 +298,11 @@ int target_handle_connect(struct ptlrpc_request *req, svc_handler_t handler)
         if (rc && rc != EALREADY)
                 GOTO(out, rc);
 
+        /* XXX track this all the time? */
+        if (target->obd_recovering) {
+                target->obd_connected_clients++;
+        }
+
         req->rq_repmsg->handle = conn;
 
         /* If the client and the server are the same node, we will already
@@ -549,8 +554,9 @@ static void process_recovery_queue(struct obd_device *obd)
                 list_del_init(&req->rq_list);
                 spin_unlock_bh(&obd->obd_processing_task_lock);
 
-                DEBUG_REQ(D_ERROR, req, "processing: ");
+                DEBUG_REQ(D_HA, req, "processing: ");
                 (void)obd->obd_recovery_handler(req);
+                obd->obd_reintegrated_requests++;
                 reset_recovery_timer(obd);
                 /* bug 1580: decide how to properly sync() in recovery */
                 //mds_fsync_super(mds->mds_sb);