From owner-cvs-all Sat Mar 24 15:47:56 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 6A6FC37B718; Sat, 24 Mar 2001 15:47:53 -0800 (PST) (envelope-from bmilekic@FreeBSD.org) Received: (from bmilekic@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2ONlrm07532; Sat, 24 Mar 2001 15:47:53 -0800 (PST) (envelope-from bmilekic) Message-Id: <200103242347.f2ONlrm07532@freefall.freebsd.org> From: Bosko Milekic Date: Sat, 24 Mar 2001 15:47:53 -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/03/24 15:47:53 PST Modified files: sys/kern uipc_mbuf.c sys/sys mbuf.h Log: Move the atomic() mbstat.m_drops incrementing to the MGET(HDR) and MCLGET macros in order to avoid incrementing the drop count twice. Otherwise, in some cases, we may increment m_drops once in m_mballoc() for example, and increment it again in m_mballoc_wait() if the wait fails. Revision Changes Path 1.71 +6 -20 src/sys/kern/uipc_mbuf.c 1.72 +9 -4 src/sys/sys/mbuf.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message