Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jun 2009 17:28:38 +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: r194543 - head/sys/netatalk
Message-ID:  <200906201728.n5KHSchr082206@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Sat Jun 20 17:28:38 2009
New Revision: 194543
URL: http://svn.freebsd.org/changeset/base/194543

Log:
  Don't lock sockets around calls to mac_socket_create_mbuf() -- policies
  are now expected to acquire the socket lock if they require them.
  
  Obtained from:	TrustedBSD Project

Modified:
  head/sys/netatalk/ddp_output.c

Modified: head/sys/netatalk/ddp_output.c
==============================================================================
--- head/sys/netatalk/ddp_output.c	Sat Jun 20 17:16:29 2009	(r194542)
+++ head/sys/netatalk/ddp_output.c	Sat Jun 20 17:28:38 2009	(r194543)
@@ -51,9 +51,7 @@ ddp_output(struct mbuf *m, struct socket
 	struct ddpcb *ddp = sotoddpcb(so);
 
 #ifdef MAC
-	SOCK_LOCK(so);
 	mac_socket_create_mbuf(so, m);
-	SOCK_UNLOCK(so);
 #endif
 
 	M_PREPEND(m, sizeof(struct ddpehdr), M_DONTWAIT);



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