Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern mark mbuf as free when we return it to the pool (Be...
details: https://anonhg.NetBSD.org/src/rev/edec97e045d3
branches: trunk
changeset: 790135:edec97e045d3
user: christos <christos%NetBSD.org@localhost>
date: Fri Sep 20 19:13:39 2013 +0000
description:
mark mbuf as free when we return it to the pool (Beverly Schwartz)
diffstat:
sys/kern/uipc_mbuf.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 5417b84ed4f3 -r edec97e045d3 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c Fri Sep 20 19:09:06 2013 +0000
+++ b/sys/kern/uipc_mbuf.c Fri Sep 20 19:13:39 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_mbuf.c,v 1.151 2013/06/28 01:23:05 matt Exp $ */
+/* $NetBSD: uipc_mbuf.c,v 1.152 2013/09/20 19:13:39 christos Exp $ */
/*-
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.151 2013/06/28 01:23:05 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.152 2013/09/20 19:13:39 christos Exp $");
#include "opt_mbuftrace.h"
#include "opt_nmbclusters.h"
@@ -1735,6 +1735,7 @@
}
}
if (dofree) {
+ m->m_type = MT_FREE;
pool_cache_put(mb_cache, m);
}
}
Home |
Main Index |
Thread Index |
Old Index