OpenAFS CVS Commit: openafs/src/rx by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Thu, 29 May 2008 09:35:34 EDT


Update of /cvs/openafs/src/rx
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-kdfs/src/rx

Modified Files:
      Tag: openafs-windows-kdfs-ifs-branch
	rx.c rx_user.c 
Log Message:
DELTA KDFS-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-windows-kdfs-ifs-branch follows ---
KDFS-rx-init-more-packets-20080529 openafs/src/rx/rx.c 1.125 1.125.2.1
KDFS-rx-init-more-packets-20080529 openafs/src/rx/rx_user.c 1.32 1.32.2.1