Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jul 2015 22:48:41 +0000 (UTC)
From:      John-Mark Gurney <jmg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285297 - head/sys/crypto/aesni
Message-ID:  <201507082248.t68Mmfjc098261@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507082248.t68Mmfjc098261>