]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allocate memory when dumping pipes with M_WAITOK flag.
authorpjd <pjd@FreeBSD.org>
Wed, 25 Aug 2004 09:31:30 +0000 (09:31 +0000)
committerpjd <pjd@FreeBSD.org>
Wed, 25 Aug 2004 09:31:30 +0000 (09:31 +0000)
commit8c34a02cfb294efe1309f859c24f2393810bf2ee
treeff28d28d387c3b2191bacbd98621d361a0557469
parent283ba8210aec6d5924aa7a6a3b3cbf0ece57768e
Allocate memory when dumping pipes with M_WAITOK flag.
On a system with huge number of pipes, M_NOWAIT failes almost always,
because of memory fragmentation.
My fix is different than the patch proposed by Pawel Malachowski,
because in FreeBSD 5.x we cannot sleep while holding dummynet mutex
(in 4.x there is no such lock).
My fix is also ugly, but there is no easy way to prepare nice and clean fix.

PR: kern/46557
Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru>
Reviewed by: mlaier
sys/netinet/ip_dummynet.c