Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2003 16:08:27 -0700 (PDT)
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 38497 for review
Message-ID:  <200309232308.h8NN8RvZ070676@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=38497

Change 38497 by sam@sam_ebb on 2003/09/23 16:08:26

	clearly noone is running this code...

Affected files ...

.. //depot/projects/netperf/sys/netipsec/ipsec.c#5 edit

Differences ...

==== //depot/projects/netperf/sys/netipsec/ipsec.c#5 (text+ko) ====

@@ -903,8 +903,14 @@
 	struct ipsecrequest *p;
 
 	p = malloc(sizeof(struct ipsecrequest), M_IPSEC_SR, M_NOWAIT|M_ZERO);
-	if (p != NULL)
-		mtx_init(&p->lock, "ipsec request", NULL, MTX_DEF);
+	if (p != NULL) {
+		/*
+		 * Need recursion for when crypto callbacks happen
+		 * directly, as in the case of software crypto.  Need
+		 * to look at how hard it is to remove this...
+		 */
+		mtx_init(&p->lock, "ipsec request", NULL, MTX_DEF|MTX_RECURSE);
+	}
 	return p;
 }
 



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