Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161704Ab1FAMjX (ORCPT ); Wed, 1 Jun 2011 08:39:23 -0400 Received: from mail-ww0-f42.google.com ([74.125.82.42]:55102 "EHLO mail-ww0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161441Ab1FAMjU (ORCPT ); Wed, 1 Jun 2011 08:39:20 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=hxcUCoiMO5LyHn4O4nsl+/BwDgn0J3SqNgk2oeD0Jmpwcl44afRnnyGn8us5zCUeHO uQZGGYAGyXQHqPnsOCSm8Lic7HeeR7/9uh1aCE9OPT9EOpUD64kRENxqNAMLFinDvIzr Ff8cryjY9gWhlyAOstuoCDaff342F5yuUHGeA= MIME-Version: 1.0 In-Reply-To: <1306922672-9012-1-git-send-email-dbaryshkov@gmail.com> References: <1306922672-9012-1-git-send-email-dbaryshkov@gmail.com> From: KOSAKI Motohiro Date: Wed, 1 Jun 2011 21:38:59 +0900 X-Google-Sender-Auth: XkGLfhSrlr1I35K65RX42qMuUYw Message-ID: Subject: Re: [PATCH] Make GFP_DMA allocations w/o ZONE_DMA emit a warning instead of failing To: Dmitry Eremin-Solenikov Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Rientjes , Russell King - ARM Linux , Mel Gorman , KAMEZAWA Hiroyuki , Rik van Riel , Andrew Morton Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1595 Lines: 36 2011/6/1 Dmitry Eremin-Solenikov : > Please be more polite to other people. After a197b59ae6 all allocations > with GFP_DMA set on nodes without ZONE_DMA fail nearly silently (only > one warning during bootup is emited, no matter how many things fail). > This is a very crude change on behaviour. To be more civil, instead of > failing emit noisy warnings each time smbd. tries to allocate a GFP_DMA > memory on non-ZONE_DMA node. > > This change should be reverted after one or two major releases, but > we should be more accurate rather than hoping for the best. > > Signed-off-by: Dmitry Eremin-Solenikov > Cc: David Rientjes > Cc: Russell King - ARM Linux > Cc: Mel Gorman > Cc: KOSAKI Motohiro > Cc: KAMEZAWA Hiroyuki > Cc: Rik van Riel > Cc: Andrew Morton Instaed of, shouldn't we revert a197b59ae6? Some arch don't have DMA_ZONE at all. and a197b59ae6 only care x86 embedded case. If we accept your patch, I can imagine other people will claim warn foold is a bug. ;) However, I think, you should explain which platform and drivers hit this breakage. Otherwise developers can't learn which platform should care. Thanks. -- 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/