summaryrefslogtreecommitdiffstats
path: root/sys/crypto
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2015-07-08 22:48:41 +0000
committerjmg <jmg@FreeBSD.org>2015-07-08 22:48:41 +0000
commitd374814126e00f3e20429c6336f1fc7fd6617491 (patch)
tree5eb709080d06172b855e8332346211f6024d3401 /sys/crypto
parent33de7ba8177c99b16010076cdce26f3986039821 (diff)
downloadFreeBSD-src-d374814126e00f3e20429c6336f1fc7fd6617491.zip
FreeBSD-src-d374814126e00f3e20429c6336f1fc7fd6617491.tar.gz
upon further examination, it turns out that _unregister_all already
provides the guarantee that no threads will be in the _newsession code.. This is provided by the CRYPTODRIVER lock... This makes the pause unneeded...
Diffstat (limited to 'sys/crypto')
-rw-r--r--sys/crypto/aesni/aesni.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/crypto/aesni/aesni.c b/sys/crypto/aesni/aesni.c
index d9947de..84203d7 100644
--- a/sys/crypto/aesni/aesni.c
+++ b/sys/crypto/aesni/aesni.c
@@ -196,9 +196,6 @@ aesni_detach(device_t dev)
rw_wunlock(&sc->lock);
crypto_unregister_all(sc->cid);
- /* XXX - wait for anyone in _newsession to leave */
- pause("aniwait", 1);
-
rw_destroy(&sc->lock);
aensi_cleanctx();
OpenPOWER on IntegriCloud