From 42df9657875b9c1a976feb532cade0f62ceb25d4 Mon Sep 17 00:00:00 2001 From: shaver Date: Mon, 22 Sep 2003 12:00:53 +0000 Subject: [PATCH] b=1995: simple recovery-progress/state reporting, in lieu of the CERROR spew. r=phil, more to come post-LLP. --- lustre/ldlm/ldlm_lib.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 4f9f5fb..81a283d 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -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); -- 1.8.3.1