From a9a768fb7ac06c887c45f6ed144c312fe357ab1e Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 15 May 2012 23:27:36 -0400 Subject: [PATCH] Windows: avoid duplicate work cm_Analyze During VNOVOL processing, if the volume is replicated and the server reference status is "not busy", set the status to busy and avoid calling cm_SetServerBusyStatus() because that function mirrors the loop that is already being processed. Change-Id: I1c92fd02fecc92c3dcd94a33eb87fe5c2fa254ae Reviewed-on: http://gerrit.openafs.org/7411 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsd/cm_conn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WINNT/afsd/cm_conn.c b/src/WINNT/afsd/cm_conn.c index 881a75a758..8f865e00dc 100644 --- a/src/WINNT/afsd/cm_conn.c +++ b/src/WINNT/afsd/cm_conn.c @@ -726,7 +726,8 @@ cm_Analyze(cm_conn_t *connp, osi_Log2(afsd_logp, "VNOVOL received for volume %u from server %s", fidp->volume, osi_LogSaveString(afsd_logp,addr)); if (replicated) { - cm_SetServerBusyStatus(serversp, serverp); + if (tsrp->status == srv_not_busy) + tsrp->status = srv_busy; } else { Sleep(2000); }