Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2018 23:26:26 +0000 (UTC)
From:      Matt Macy <mmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335021 - head/sys/netinet
Message-ID:  <201806122326.w5CNQQnl003269@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmacy
Date: Tue Jun 12 23:26:25 2018
New Revision: 335021
URL: https://svnweb.freebsd.org/changeset/base/335021

Log:
  Defer inpcbport free in in_pcbremlists as well

Modified:
  head/sys/netinet/in_pcb.c

Modified: head/sys/netinet/in_pcb.c
==============================================================================
--- head/sys/netinet/in_pcb.c	Tue Jun 12 22:54:48 2018	(r335020)
+++ head/sys/netinet/in_pcb.c	Tue Jun 12 23:26:25 2018	(r335021)
@@ -2680,7 +2680,7 @@ in_pcbremlists(struct inpcb *inp)
 		CK_LIST_REMOVE(inp, inp_portlist);
 		if (CK_LIST_FIRST(&phd->phd_pcblist) == NULL) {
 			CK_LIST_REMOVE(phd, phd_hash);
-			free(phd, M_PCB);
+			epoch_call(net_epoch_preempt, &phd->phd_epoch_ctx, inpcbport_free);
 		}
 		INP_HASH_WUNLOCK(pcbinfo);
 		inp->inp_flags &= ~INP_INHASHLIST;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806122326.w5CNQQnl003269>