Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933903AbXEWPS1 (ORCPT ); Wed, 23 May 2007 11:18:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757071AbXEWPSS (ORCPT ); Wed, 23 May 2007 11:18:18 -0400 Received: from hancock.steeleye.com ([71.30.118.248]:34132 "EHLO hancock.sc.steeleye.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756366AbXEWPSR (ORCPT ); Wed, 23 May 2007 11:18:17 -0400 Subject: Re: [PATCH] [scsi] Remove __GFP_DMA From: James Bottomley To: Aubrey Li Cc: Christoph Lameter , Bernhard Walle , linux-scsi@vger.kernel.org, Andrew Morton , linux-kernel@vger.kernel.org In-Reply-To: <6d6a94c50705221941y63f4db7bj174a2265d9eaa61a@mail.gmail.com> References: <20070521151525.GA581@suse.de> <6d6a94c50705221941y63f4db7bj174a2265d9eaa61a@mail.gmail.com> Content-Type: text/plain Date: Wed, 23 May 2007 10:18:14 -0500 Message-Id: <1179933494.3700.16.camel@mulgrave.il.steeleye.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1168 Lines: 33 On Wed, 2007-05-23 at 10:41 +0800, Aubrey Li wrote: > On 5/23/07, Christoph Lameter wrote: > > On Mon, 21 May 2007, Bernhard Walle wrote: > > > > > [PATCH] [scsi] Remove __GFP_DMA > > > > > > After 821de3a27bf33f11ec878562577c586cd5f83c64, it's not necessary to alloate a > > > DMA buffer any more in sd.c. > > > > > > Signed-off-by: Bernhard Walle > > > > Great that avoids a DMA kmalloc slab. Any other GFP_DMAs left in the scsi > > layer? > > > > Acked-by: Christoph Lameter > > Yes, here is another patch I'll defer to Mark on this one. However, please remember that you can't just blindly remove GFP_DMA ... there are some cards which require it. Aacraid is one example ... it has a set of cards that can only DMA to 31 bits. For them, the GFP_DMA is necessary: The allocation in question is a scatterlist, which must be within the device DMA mask. James - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/