From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932646Ab3HNKtw (ORCPT ); Wed, 14 Aug 2013 06:49:52 -0400 Received: from ringil.hengli.com.au ([178.18.16.133]:42443 "EHLO fornost.hengli.com.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932467Ab3HNKtt (ORCPT ); Wed, 14 Aug 2013 06:49:49 -0400 Date: Wed, 14 Aug 2013 20:49:40 +1000 From: Herbert Xu To: Marcelo Cerri Cc: benh@kernel.crashing.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] crypto: nx - fix concurrency issue Message-ID: <20130814104937.GC13403@gondor.apana.org.au> References: <1376344177-7205-1-git-send-email-mhcerri@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1376344177-7205-1-git-send-email-mhcerri@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2013 at 06:49:37PM -0300, Marcelo Cerri wrote: > The NX driver uses the transformation context to store several fields > containing data related to the state of the operations in progress. > Since a single tfm can be used by different kernel threads at the same > time, we need to protect the data stored into the context. > > This patch makes use of spin locks to protect the data where a race > condition can happen. > > Reviewed-by: Fionnuala Gunter > Reviewed-by: Joy Latten > Signed-off-by: Marcelo Cerri Patch applied. Thanks a lot! -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt