diff options
author | 2017-11-30 16:31:12 +0000 | |
---|---|---|
committer | 2017-11-30 16:31:12 +0000 | |
commit | 2e84407f35579034f0ededa3b8f08f44afe6b9b0 (patch) | |
tree | 1cf0461a29ed8a9d99b83ff1292ebd88cc4fade2 | |
parent | add bgw; (diff) | |
download | wireguard-openbsd-2e84407f35579034f0ededa3b8f08f44afe6b9b0.tar.xz wireguard-openbsd-2e84407f35579034f0ededa3b8f08f44afe6b9b0.zip |
Fix the IPL and flags of the MP-safe crypto taskq. Now a sane IPL
is passed to the mutex implementation, and the queue actually runs
without the kernel lock.
Tested by dhill@
OK mikeb@, dhill@, kettenis@
-rw-r--r-- | sys/crypto/crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/crypto/crypto.c b/sys/crypto/crypto.c index 2ee1cb6d887..84574284a56 100644 --- a/sys/crypto/crypto.c +++ b/sys/crypto/crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto.c,v 1.79 2017/02/07 17:25:46 patrick Exp $ */ +/* $OpenBSD: crypto.c,v 1.80 2017/11/30 16:31:12 visa Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) * @@ -507,7 +507,7 @@ void crypto_init(void) { crypto_taskq = taskq_create("crypto", 1, IPL_VM, 0); - crypto_taskq_mpsafe = taskq_create("crynlk", 1, IPL_VM|IPL_MPSAFE, 0); + crypto_taskq_mpsafe = taskq_create("crynlk", 1, IPL_VM, TASKQ_MPSAFE); pool_init(&cryptop_pool, sizeof(struct cryptop), 0, IPL_VM, 0, "cryptop", NULL); |