Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752210AbXEXRWf (ORCPT ); Thu, 24 May 2007 13:22:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750926AbXEXRW0 (ORCPT ); Thu, 24 May 2007 13:22:26 -0400 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:34318 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750837AbXEXRWZ (ORCPT ); Thu, 24 May 2007 13:22:25 -0400 Date: Thu, 24 May 2007 10:22:24 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: James Bottomley cc: "Salyzyn, Mark" , Aubrey Li , Bernhard Walle , linux-scsi@vger.kernel.org, Andrew Morton , linux-kernel@vger.kernel.org, Alan Cox Subject: RE: [PATCH] [scsi] Remove __GFP_DMA In-Reply-To: <1180026917.3692.47.camel@mulgrave.il.steeleye.com> Message-ID: References: <1180018752.3692.16.camel@mulgrave.il.steeleye.com> <1180026917.3692.47.camel@mulgrave.il.steeleye.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 984 Lines: 21 On Thu, 24 May 2007, James Bottomley wrote: > The idea was basically to match an allocation to a device mask. I was > going to do a generic implementation (which would probably kmalloc, > check the physaddr and fall back to GFP_DMA if we were unlucky) but > allow the architectures to override. Hmmmm... We could actually implement something like it in the slab allocators. The mask parameter would lead the allocator to check if the objects are in a satisfactory range. If not it could examine its partial lists for slabs that satisfy the range. If that does not work then it would eventually go to the page allocator to ask for a page in a fitting range. That wont be fast though. How performance sensitive are the allocations? - 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/