From: Huang Ying Subject: [PATCH 3/3] crypto: Uses kcrypto_wq instead of keventd_wq in chainiv Date: Mon, 02 Feb 2009 14:42:25 +0800 Message-ID: <1233556945.19806.59.camel@yhuang-dev.sh.intel.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-5jknn2iMu47QG1rC39T/" Cc: Andrew Morton , "linux-kernel@vger.kernel.org" , "linux-crypto@vger.kernel.org" To: Herbert Xu Return-path: Received: from mga01.intel.com ([192.55.52.88]:3985 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752695AbZBBGm1 (ORCPT ); Mon, 2 Feb 2009 01:42:27 -0500 Sender: linux-crypto-owner@vger.kernel.org List-ID: --=-5jknn2iMu47QG1rC39T/ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable keventd_wq has potential starvation problem, so use dedicated kcrypto_wq instead. Signed-off-by: Huang Ying --- crypto/Kconfig | 1 + crypto/chainiv.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -56,6 +56,7 @@ config CRYPTO_BLKCIPHER2 tristate select CRYPTO_ALGAPI2 select CRYPTO_RNG2 + select CRYPTO_WORKQUEUE =20 config CRYPTO_HASH tristate --- a/crypto/chainiv.c +++ b/crypto/chainiv.c @@ -15,6 +15,7 @@ =20 #include #include +#include #include #include #include @@ -133,7 +134,7 @@ static int async_chainiv_schedule_work(s goto out; } =20 - queued =3D schedule_work(&ctx->postponed); + queued =3D queue_work(kcrypto_wq, &ctx->postponed); BUG_ON(!queued); =20 out: --=-5jknn2iMu47QG1rC39T/ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkmGlc4ACgkQKhFGF+eHlpgLEwCfYz0CsElqZ2j9/3CYqHdc/yYX rpAAnAmlQbUUdSwb57+YjfiJVZKGLg8e =ZfF2 -----END PGP SIGNATURE----- --=-5jknn2iMu47QG1rC39T/--