From: Andrew Deason Date: Fri, 4 Mar 2011 17:35:06 +0000 (-0600) Subject: viced: Set HWHO_INPROGRESS in CheckHost_r X-Git-Tag: openafs-devel-1_7_1~852 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=64d52938ee26e160a6e2cd64253df096eb5d0c1e 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. Change-Id: I37e3b37ea98d8d42578bf85a3b5aaaff4c4a7331 Reviewed-on: http://gerrit.openafs.org/4126 Reviewed-by: Jeffrey Altman Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/viced/host.c b/src/viced/host.c index fae7a9c..ef24967 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -3837,6 +3837,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) { @@ -3904,6 +3905,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); }