Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/opencrypto crypto(4): Use IPL_NONE, not IPL_NET, for /de...
details: https://anonhg.NetBSD.org/src/rev/509f83c99168
branches: trunk
changeset: 366209:509f83c99168
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed May 18 20:02:49 2022 +0000
description:
crypto(4): Use IPL_NONE, not IPL_NET, for /dev/crypto pools.
These are used (pool_get/put) only from thread context, never from
interrupt or even soft interrupt context.
diffstat:
sys/opencrypto/cryptodev.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 4c493d899076 -r 509f83c99168 sys/opencrypto/cryptodev.c
--- a/sys/opencrypto/cryptodev.c Wed May 18 20:01:21 2022 +0000
+++ b/sys/opencrypto/cryptodev.c Wed May 18 20:02:49 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cryptodev.c,v 1.108 2022/05/17 09:53:09 riastradh Exp $ */
+/* $NetBSD: cryptodev.c,v 1.109 2022/05/18 20:02:49 riastradh 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.108 2022/05/17 09:53:09 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.109 2022/05/18 20:02:49 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2118,9 +2118,9 @@
mutex_init(&cryptodev_mtx, MUTEX_DEFAULT, IPL_NONE);
pool_init(&fcrpl, sizeof(struct fcrypt), 0, 0, 0, "fcrpl",
- NULL, IPL_NET); /* XXX IPL_NET ("splcrypto") */
+ NULL, IPL_NONE);
pool_init(&csepl, sizeof(struct csession), 0, 0, 0, "csepl",
- NULL, IPL_NET); /* XXX IPL_NET ("splcrypto") */
+ NULL, IPL_NONE);
/*
* Preallocate space for 64 users, with 5 sessions each.
Home |
Main Index |
Thread Index |
Old Index