From: Dan Hyde Date: Sat, 10 Nov 2007 00:33:41 +0000 (+0000) Subject: viced-missing-lock-20071109 X-Git-Tag: BP-openafs-windows-kdfs-ifs~364 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=76c886b574b7d21db2557872be8af8e6ca549f34;p=packages%2Fo%2Fopenafs.git viced-missing-lock-20071109 FIXES 76713 Add missing lock that needs to protect an in use 'host' from having HOSTDELETED added to the hostFlags and HWNO_INPROGRESS removed. --- diff --git a/src/viced/host.c b/src/viced/host.c index 764a558ca..24809b5d2 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1576,6 +1576,7 @@ h_GetHost_r(struct rx_connection *tcon) host->interface ? uuid2 : "no_uuid")); /* The host in the cache is not the host for this connection */ + h_Lock_r(host); host->hostFlags |= HOSTDELETED; host->hostFlags &= ~HWHO_INPROGRESS; h_Unlock_r(host);