summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2011-05-24 13:08:59 +0000
committerrwatson <rwatson@FreeBSD.org>2011-05-24 13:08:59 +0000
commit08101b4867765d4080cc8b5ee02dcebca5ed87d5 (patch)
treea5dabd7aef4905d8980191a7eace48ea42f31025 /sys/netinet/in_pcb.c
parent528150c490a28869ecb03b5cd0dd6b441b362813 (diff)
downloadFreeBSD-src-08101b4867765d4080cc8b5ee02dcebca5ed87d5.zip
FreeBSD-src-08101b4867765d4080cc8b5ee02dcebca5ed87d5.tar.gz
An inpcb lock is no longer required in in_pcbref() since the move to
refcount(9). MFC after: 3 weeks Sponsored by: Juniper Networks, Inc.
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r--sys/netinet/in_pcb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 9bde3c8..85e31dc 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -1054,8 +1054,6 @@ void
in_pcbref(struct inpcb *inp)
{
- INP_WLOCK_ASSERT(inp);
-
KASSERT(inp->inp_refcount > 0, ("%s: refcount 0", __func__));
refcount_acquire(&inp->inp_refcount);
OpenPOWER on IntegriCloud