STABLE146-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.


(cherry picked from commit 76c886b574b7d21db2557872be8af8e6ca549f34)
This commit is contained in:
Dan Hyde 2007-12-13 20:55:42 +00:00 committed by Derrick Brashear
parent faf46aadb4
commit 4fdbf026e5

View File

@ -1558,6 +1558,7 @@ h_GetHost_r(struct rx_connection *tcon)
host->interface ? uuid2 : "")); host->interface ? uuid2 : ""));
/* The host in the cache is not the host for this connection */ /* The host in the cache is not the host for this connection */
h_Lock_r(host);
host->hostFlags |= HOSTDELETED; host->hostFlags |= HOSTDELETED;
host->hostFlags &= ~HWHO_INPROGRESS; host->hostFlags &= ~HWHO_INPROGRESS;
h_Unlock_r(host); h_Unlock_r(host);