OpenAFS CVS Commit: openafs/src/rx by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Sun, 22 Jun 2008 23:20:50 EDT


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

Modified Files:
      Tag: openafs-devel-1_5_3x
	rx.c rx_user.c 
Log Message:
DELTA DEVEL153X-rx-init-more-packets-20080529
AUTHOR jaltman@secure-endpoints.com
LICENSE MIT

It is frequently the case that rx_getAllAddr() is called before
rx_Init() or rx_InitHost().  rx_getAllAddr() obtains the list of
interfaces by using rx_GetIFInfo() which in turn computes and
allocates the number of addition rx packets.  Unfortunately,
rxi_MorePackets() relies on the existence of an initialized mutex
and the mutex is not initialized (on Windows) until the rx_InitHost()
call.  Therefore, we must delay the rxi_MorePackets() call until
after rx_InitHost() if rx_getAllAddr() is called previously.

Failure to do so results in a panic.


--- DELTA config for openafs-devel-1_5_3x follows ---
DEVEL153X-rx-init-more-packets-20080529 openafs/src/rx/rx.c 1.97.2.20.2.5 1.97.2.20.2.6
DEVEL153X-rx-init-more-packets-20080529 openafs/src/rx/rx_user.c 1.24.4.2.2.1 1.24.4.2.2.2