Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2011 13:08:59 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222251 - head/sys/netinet
Message-ID:  <201105241308.p4OD8xqH069587@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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