svn commit: r222251 - head/sys/netinet

Robert Watson rwatson at FreeBSD.org
Tue May 24 13:08:59 UTC 2011


Author: rwatson
Date: Tue May 24 13:08:59 2011
New Revision: 222251
URL: http://svn.freebsd.org/changeset/base/222251

Log:
  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.

Modified:
  head/sys/netinet/in_pcb.c

Modified: head/sys/netinet/in_pcb.c
==============================================================================
--- head/sys/netinet/in_pcb.c	Tue May 24 12:38:00 2011	(r222250)
+++ head/sys/netinet/in_pcb.c	Tue May 24 13:08:59 2011	(r222251)
@@ -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);


More information about the svn-src-all mailing list