summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-11-26 01:40:44 +0000
committersam <sam@FreeBSD.org>2003-11-26 01:40:44 +0000
commit960b35f03a6c555c26345ba9adaa33039083e66f (patch)
treee73f0c0da8c8ad5f7e26fc7d6c55d52ecd1d54f9 /sys/netinet/in_pcb.c
parentf3a38bd433ebca6fe0d7bf5080f05b08225865d9 (diff)
downloadFreeBSD-src-960b35f03a6c555c26345ba9adaa33039083e66f.zip
FreeBSD-src-960b35f03a6c555c26345ba9adaa33039083e66f.tar.gz
Split the "inp" mutex class into separate classes for each of divert,
raw, tcp, udp, raw6, and udp6 sockets to avoid spurious witness complaints. Reviewed by: rwatson Approved by: re (rwatson)
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r--sys/netinet/in_pcb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 050fb88..0b9181c 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -157,10 +157,11 @@ SYSCTL_INT(_net_inet_ip_portrange, OID_AUTO, reservedlow,
* Allocate a PCB and associate it with the socket.
*/
int
-in_pcballoc(so, pcbinfo, td)
+in_pcballoc(so, pcbinfo, td, type)
struct socket *so;
struct inpcbinfo *pcbinfo;
struct thread *td;
+ const char *type;
{
register struct inpcb *inp;
int error;
@@ -198,7 +199,7 @@ in_pcballoc(so, pcbinfo, td)
LIST_INSERT_HEAD(pcbinfo->listhead, inp, inp_list);
pcbinfo->ipi_count++;
so->so_pcb = (caddr_t)inp;
- INP_LOCK_INIT(inp, "inp");
+ INP_LOCK_INIT(inp, "inp", type);
#ifdef INET6
if (ip6_auto_flowlabel)
inp->inp_flags |= IN6P_AUTOFLOWLABEL;
OpenPOWER on IntegriCloud