From: Andrew Deason Date: Fri, 4 Mar 2011 17:35:06 +0000 (-0600) Subject: viced: Set HWHO_INPROGRESS in CheckHost_r X-Git-Tag: debian/1.6.0.pre3-1~5^2^2~33 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=689317fbd98e28b8f2b884fcb4ec52b62d927143;p=packages%2Fo%2Fopenafs.git viced: Set HWHO_INPROGRESS in CheckHost_r When we are probing a host in CheckHost_r, set the HWHO_INPROGRESS flag on the host, so other threads know that the host is locked while we are waiting for a probe response, and the h_threadquota mechanism can work correctly. Reviewed-on: http://gerrit.openafs.org/4126 Reviewed-by: Jeffrey Altman Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 64d52938ee26e160a6e2cd64253df096eb5d0c1e) Change-Id: I168fb4cf80106bcaf3f846df68ab5a98b65365ab Reviewed-on: http://gerrit.openafs.org/4127 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/viced/host.c b/src/viced/host.c index c7318f00e..4f1dd7561 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -3838,6 +3838,7 @@ CheckHost_r(struct host *host, int flags, void *dummy) if (host->LastCall < checktime) { h_Lock_r(host); if (!(host->hostFlags & HOSTDELETED)) { + host->hostFlags |= HWHO_INPROGRESS; cb_conn = host->callback_rxcon; rx_GetConnection(cb_conn); if (host->LastCall < clientdeletetime) { @@ -3905,6 +3906,7 @@ CheckHost_r(struct host *host, int flags, void *dummy) rx_PutConnection(cb_conn); cb_conn=NULL; H_LOCK; + host->hostFlags &= ~HWHO_INPROGRESS; } h_Unlock_r(host); }