svn commit: r285297 - head/sys/crypto/aesni

John-Mark Gurney jmg at FreeBSD.org
Wed Jul 8 22:48:42 UTC 2015


Author: jmg
Date: Wed Jul  8 22:48:41 2015
New Revision: 285297
URL: https://svnweb.freebsd.org/changeset/base/285297

Log:
  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...

Modified:
  head/sys/crypto/aesni/aesni.c

Modified: head/sys/crypto/aesni/aesni.c
==============================================================================
--- head/sys/crypto/aesni/aesni.c	Wed Jul  8 22:46:45 2015	(r285296)
+++ head/sys/crypto/aesni/aesni.c	Wed Jul  8 22:48:41 2015	(r285297)
@@ -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();


More information about the svn-src-head mailing list