Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Apr 2006 20:06:07 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/opencrypto crypto.c
Message-ID:  <20060411180606.GB7031@garage.freebsd.pl>
In-Reply-To: <200604111801.k3BI14xl051713@repoman.freebsd.org>
References:  <200604111801.k3BI14xl051713@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--NMuMz9nt05w80d4+
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 11, 2006 at 06:01:04PM +0000, Pawel Jakub Dawidek wrote:
+> pjd         2006-04-11 18:01:04 UTC
+>=20
+>   FreeBSD src repository
+>=20
+>   Modified files:
+>     sys/opencrypto       crypto.c=20
+>   Log:
+>   Be sure to wakeup the crypto thread when new request was queued.
+>   This should fix a hang when starting cryptokeytest (and more).

This is not the best fix here, because the crypto thread is running if
there is a symmetric or asymmetric requests in the queue, but will do
for now.

The better fix will be a part of my bigger changes, where there is a
macro CRYPTO_Q_EMPTY() defined as follows:

#define	CRYPTO_Q_EMPTY()	(TAILQ_EMPTY(&crp_q) && TAILQ_EMPTY(&crp_kq))

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--NMuMz9nt05w80d4+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFEO/AOForvXbEpPzQRAnocAJ49IthaZS80mn9T5SImYuasNFshpQCeK8hn
u3F488321PzipI+ZJl0d4Xc=
=TdR2
-----END PGP SIGNATURE-----

--NMuMz9nt05w80d4+--



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