Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/opencrypto As requested by mrg@, since there is still a ...
details: https://anonhg.NetBSD.org/src/rev/c55b38d4f337
branches: trunk
changeset: 793024:c55b38d4f337
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri Jan 24 15:11:09 2014 +0000
description:
As requested by mrg@, since there is still a small window during which
the in-module ref-counting can fail, completely disable auto-unload.
diffstat:
sys/opencrypto/cryptodev.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 8fc416ac6f12 -r c55b38d4f337 sys/opencrypto/cryptodev.c
--- a/sys/opencrypto/cryptodev.c Fri Jan 24 14:52:00 2014 +0000
+++ b/sys/opencrypto/cryptodev.c Fri Jan 24 15:11:09 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cryptodev.c,v 1.74 2014/01/21 20:33:01 pgoyette Exp $ */
+/* $NetBSD: cryptodev.c,v 1.75 2014/01/24 15:11:09 pgoyette Exp $ */
/* $FreeBSD: src/sys/opencrypto/cryptodev.c,v 1.4.2.4 2003/06/03 00:09:02 sam Exp $ */
/* $OpenBSD: cryptodev.c,v 1.53 2002/07/10 22:21:30 mickey Exp $ */
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.74 2014/01/21 20:33:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.75 2014/01/24 15:11:09 pgoyette Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2224,7 +2224,12 @@
return error;
#ifdef _MODULE
case MODULE_CMD_AUTOUNLOAD:
+#if 0 /*
+ * XXX Completely disable auto-unload for now, since there is still
+ * XXX a (small) window where in-module ref-counting doesn't help
+ */
if (crypto_refcount != 0)
+#endif
return EBUSY;
/* FALLTHROUGH */
#endif
Home |
Main Index |
Thread Index |
Old Index