From owner-cvs-all Sat Jan 20 13:29:33 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BA8D437B404; Sat, 20 Jan 2001 13:29:10 -0800 (PST) Received: (from bmilekic@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0KLTAt38477; Sat, 20 Jan 2001 13:29:10 -0800 (PST) (envelope-from bmilekic) Message-Id: <200101202129.f0KLTAt38477@freefall.freebsd.org> From: Bosko Milekic Date: Sat, 20 Jan 2001 13:29:10 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern uipc_mbuf.c src/sys/sys mbuf.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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