OpenAFS CVS Commit: openafs/src/viced by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Wed, 01 Mar 2006 14:12:06 EST


Update of /cvs/openafs/src/viced
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/viced

Modified Files:
	host.c 
Log Message:
DELTA viced-h_Enumerate_r-fix-20060301
AUTHOR jaltman@secure-endpoints.com

In h_Enumerate_r it is possible that the host may be released by the 
called procedure.  Therefore, we must preserve the pointer to host->next
before the call and hold the host it points to in order to ensure that
it does not disappear out from under us.  This ensures that although
the H_LOCK can be dropped during the procedure and the host list can
be rearranged we won't miss more than a handful of hosts during the 
enumeration.



--- DELTA config follows ---
viced-h_Enumerate_r-fix-20060301 openafs/src/viced/host.c 1.81 1.82