PERFORCE change 38497 for review
Sam Leffler
sam at FreeBSD.org
Tue Sep 23 16:08:28 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=38497
Change 38497 by sam at 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;
}
More information about the p4-projects
mailing list