OpenAFS CVS Commit: openafs/src/rx by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Tue, 12 Aug 2008 14:40:00 EDT


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

Modified Files:
	rx_globals.h rx_packet.c 
Log Message:
DELTA rx-buffer-allocation-20080812
AUTHOR jaltman@secure-endpoints.com
LICENSE MIT

Prevent rxi_MorePacketsNoLock() from dereferencing a NULL pointer if
the requested allocation size cannot be satsified.  In that case back
off the number of packets until osi_Alloc() succeeds or panic if no
packets can be allocated at all.

In AllocPacketBufs() do not transfer more than rx_TSFPQGlobSize packets.

Modify RX_TS_FPQ_GTOL2() macro to protect against transfering more packets
that are actually free.

Modify RX_TS_FPQ_COMPUTE_LIMITS() to enforce a rx_TSFPQGlobSize maximum
value of 64 packets to prevent ever increasing allocation sizes within
AllocPacketBufs()



--- DELTA config follows ---
rx-buffer-allocation-20080812 openafs/src/rx/rx_globals.h 1.33 1.34
rx-buffer-allocation-20080812 openafs/src/rx/rx_packet.c 1.78 1.79