Date: Sat, 20 Jan 2001 13:29:10 -0800 (PST) From: Bosko Milekic <bmilekic@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern uipc_mbuf.c src/sys/sys mbuf.h Message-ID: <200101202129.f0KLTAt38477@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
bmilekic 2001/01/20 13:29:10 PST
Modified files:
sys/kern uipc_mbuf.c
sys/sys mbuf.h
Log:
When short of mbufs or mbuf clusters, we sleep on appropriate "counters."
The counters are incremented when a thread goes to sleep and decremented
either when a thread is woken up by another thread or when the sleep
times out. There existed a race where the sleep count could be decremented
twice resulting in an eventual underflow.
Move the decrementing of the "counters" to the thread initiating the sleep
and thus remedy the problem.
Revision Changes Path
1.63 +6 -7 src/sys/kern/uipc_mbuf.c
1.67 +2 -4 src/sys/sys/mbuf.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101202129.f0KLTAt38477>
