From: visa Date: Thu, 30 Nov 2017 16:31:12 +0000 (+0000) Subject: Fix the IPL and flags of the MP-safe crypto taskq. Now a sane IPL X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2e84407f35579034f0ededa3b8f08f44afe6b9b0;p=openbsd 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@ --- 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);