summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2015-09-15 17:08:00 -0500
committerLuiz Otavio O Souza <luiz@netgate.com>2015-10-20 12:07:49 -0500
commitcd53262b45411c25d857d59695cb0cdd619c7649 (patch)
treeb2c2b506e2f37dbfdc2db3211e4c446dcbc35f13
parentcabafa063a2a57d699a2cb0c8c8c772dce9c2571 (diff)
downloadFreeBSD-src-cd53262b45411c25d857d59695cb0cdd619c7649.zip
FreeBSD-src-cd53262b45411c25d857d59695cb0cdd619c7649.tar.gz
MFC r285297:
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... TAG: IPSEC-HEAD Issue: #4841
-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 416c31f..602247a 100644
--- a/sys/crypto/aesni/aesni.c
+++ b/sys/crypto/aesni/aesni.c
@@ -197,9 +197,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