Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763492Ab3IEJCj (ORCPT ); Thu, 5 Sep 2013 05:02:39 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:7314 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1757674Ab3IEJCg (ORCPT ); Thu, 5 Sep 2013 05:02:36 -0400 X-IronPort-AV: E=Sophos;i="4.90,845,1371052800"; d="scan'208";a="8421867" Message-ID: <52284860.60407@cn.fujitsu.com> Date: Thu, 05 Sep 2013 17:01:20 +0800 From: Tang Chen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Tejun Heo CC: rjw@sisk.pl, lenb@kernel.org, tglx@linutronix.de, mingo@elte.hu, hpa@zytor.com, akpm@linux-foundation.org, trenn@suse.de, yinghai@kernel.org, jiang.liu@huawei.com, wency@cn.fujitsu.com, laijs@cn.fujitsu.com, isimatu.yasuaki@jp.fujitsu.com, izumi.taku@jp.fujitsu.com, mgorman@suse.de, minchan@kernel.org, mina86@mina86.com, gong.chen@linux.intel.com, vasilis.liaskovitis@profitbricks.com, lwoodman@redhat.com, riel@redhat.com, jweiner@redhat.com, prarit@redhat.com, zhangyanfei@cn.fujitsu.com, x86@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH 00/11] x86, memblock: Allocate memory near kernel image before SRAT parsed. References: <1377596268-31552-1-git-send-email-tangchen@cn.fujitsu.com> <20130904192215.GG26609@mtj.dyndns.org> In-Reply-To: <20130904192215.GG26609@mtj.dyndns.org> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/09/05 17:00:22, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/09/05 17:00:24, Serialize complete at 2013/09/05 17:00:24 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1347 Lines: 37 Hi tj, On 09/05/2013 03:22 AM, Tejun Heo wrote: ...... > I'm expectedly happier with this approach but some overall review > points. > > * I think patch splitting went a bit too far. e.g. it doesn't make > much sense or helps anything to split "introduction of a param" from > "the param doing something". > > * I think it's a lot more complex than necessary. Just implement a > single function - memblock_alloc_bottom_up(@start) where specifying > MEMBLOCK_ALLOC_ANYWHERE restores top down behavior and do > memblock_alloc_bottom_up(end_of_kernel) early during boot. If the > bottom up mode is set, just try allocating bottom up from the > specified address and if that fails do normal top down allocation. > No need to meddle with the callers. The only change necessary > (well, aside from the reordering) outside memblock is adding two > calls to the above function. > > * I don't think "order" is the right word here. "direction" probably > fits a lot better. > Thanks for the advices. I'll try to simply the code and send a new patch-set soon. 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/