Module Name: src Committed By: riz Date: Fri Jun 11 23:36:08 UTC 2010
Modified Files: src/sys/netinet [netbsd-5]: tcp_input.c Log Message: Pull up following revision(s) (requested by bouyer in ticket #1382): sys/netinet/tcp_input.c: revision 1.304 sys/netinet/tcp_input.c: revision 1.305 syn_cache_put(): defer all pool_put() to the callout. Reschedule the callout if needed so frees are not delayed too much. syn_cache_timer(): we can't call syn_cache_put() here any more, so move code deleted from syn_cache_put() here. Avoid KASSERT() in kern_timeout.c because pool_put() is called from ipintr context, as reported in http://mail-index.netbsd.org/tech-kern/2010/03/19/msg007762.html Thanks to Andrew Doran and Mindaugas Rasiukevicius for help and review. Make sure SYN_CACHE_TIMER_ARM() has been run before calling syn_cache_put() as it will reschedule the timer. Fixes PR kern/43318. To generate a diff of this commit: cvs rdiff -u -r1.291.4.4 -r1.291.4.5 src/sys/netinet/tcp_input.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.