summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2004-07-21 21:03:01 +0000
committerbmilekic <bmilekic@FreeBSD.org>2004-07-21 21:03:01 +0000
commit8f7a784378001685143caa57d4bbf2673b9e1be1 (patch)
tree16cae26dd78cac27005e1d71041e084af97985b7 /sys/kern/uipc_mbuf.c
parentd7343d0e328a6166b38eec1e02e3f4781d0ae25b (diff)
downloadFreeBSD-src-8f7a784378001685143caa57d4bbf2673b9e1be1.zip
FreeBSD-src-8f7a784378001685143caa57d4bbf2673b9e1be1.tar.gz
Back out just a portion of Alfred's last commit. Remove the MBUF_CHECK
(WITNESS) for code paths that always call uma_zalloc_arg() shortly after where the check was, because uma_zalloc_arg() already does a similar check. No objections from Alfred. Thanks Alfred.
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index a9a93fd..a1449d8 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -105,7 +105,6 @@ m_getm(struct mbuf *m, int len, int how, short type)
int i;
KASSERT(len >= 0, ("m_getm(): len is < 0"));
- MBUF_CHECKSLEEP(how);
/* If m != NULL, we will append to the end of that chain. */
if (m != NULL)
@@ -331,7 +330,6 @@ m_prepend(struct mbuf *m, int len, int how)
{
struct mbuf *mn;
- MBUF_CHECKSLEEP(how);
if (m->m_flags & M_PKTHDR)
MGETHDR(mn, how, m->m_type);
else
OpenPOWER on IntegriCloud