From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from de01egw01.freescale.net (de01egw01.freescale.net [192.88.165.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BB01BDEEC3 for ; Fri, 18 Jul 2008 01:28:30 +1000 (EST) Date: Thu, 17 Jul 2008 10:27:46 -0500 From: Kim Phillips To: Kumar Gala Subject: Re: [PATCH 4/6] crypto: talitos - fix GFP flag usage Message-Id: <20080717102746.33381e30.kim.phillips@freescale.com> In-Reply-To: References: <20080716182215.36c1bd11.kim.phillips@freescale.com> <20080717121758.GA25267@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev , Herbert Xu , linux-crypto@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 17 Jul 2008 07:26:14 -0500 Kumar Gala wrote: > > On Jul 17, 2008, at 7:17 AM, Herbert Xu wrote: > > > On Wed, Jul 16, 2008 at 06:33:45PM -0500, Kumar Gala wrote: > >> > >> On Jul 16, 2008, at 6:22 PM, Kim Phillips wrote: > >> > >>> use GFP_ATOMIC when necessary; use atomic_t when allocating > >>> submit_count. > >> > >> why? > > > > You mean why are atomics required? Yes that is a good question. > > Yep. the commit message isn't explaining why, just what :) In honouring requests that don't have the CRYPTO_TFM_REQ_MAY_SLEEP set, afaict, it's the standard non-wait variant GFP that drivers use (see the ixp4xx driver for e.g.). Kim