svn commit: r349617 - head/sys/kern
John Baldwin
jhb at FreeBSD.org
Tue Jul 2 22:58:23 UTC 2019
Author: jhb
Date: Tue Jul 2 22:58:21 2019
New Revision: 349617
URL: https://svnweb.freebsd.org/changeset/base/349617
Log:
Invoke ext_free function when freeing an unmapped mbuf.
Fix a mis-merge when extracting the unmapped mbuf changes from
Netflix's in-kernel TLS changes where the call to the function that
freed the backing pages from an unmapped mbuf was missed.
Sponsored by: Chelsio Communications
Modified:
head/sys/kern/kern_mbuf.c
Modified: head/sys/kern/kern_mbuf.c
==============================================================================
--- head/sys/kern/kern_mbuf.c Tue Jul 2 22:57:24 2019 (r349616)
+++ head/sys/kern/kern_mbuf.c Tue Jul 2 22:58:21 2019 (r349617)
@@ -1282,6 +1282,9 @@ mb_free_ext(struct mbuf *m)
uma_zfree(zone_mbuf, mref);
break;
case EXT_PGS:
+ KASSERT(mref->m_ext.ext_free != NULL,
+ ("%s: ext_free not set", __func__));
+ mref->m_ext.ext_free(mref);
uma_zfree(zone_extpgs, mref->m_ext.ext_pgs);
uma_zfree(zone_mbuf, mref);
break;
More information about the svn-src-all
mailing list