From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752338AbdJDOPe (ORCPT ); Wed, 4 Oct 2017 10:15:34 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:48016 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752293AbdJDOPc (ORCPT ); Wed, 4 Oct 2017 10:15:32 -0400 X-Google-Smtp-Source: AOwi7QDggFmrEBZACr0u6lrcHVAWNtK5g6tFOexARtKFZTUG1Cvt1Y0LM9WjvBKChcpp97PzzCrX9w== Date: Wed, 4 Oct 2017 07:15:28 -0700 From: Tejun Heo To: Nicolas Pitre Cc: Christoph Lameter , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/percpu.c: use smarter memory allocation for struct pcpu_alloc_info Message-ID: <20171004141528.GO3301751@devbig577.frc2.facebook.com> References: <20171003210540.GM3301751@devbig577.frc2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Tue, Oct 03, 2017 at 06:29:49PM -0400, Nicolas Pitre wrote: > Subject: [PATCH] percpu: don't forget to free the temporary struct pcpu_alloc_info > > Unlike the SMP case, the !SMP case does not free the memory for struct > pcpu_alloc_info allocated in setup_per_cpu_areas(). And to give it a > chance of being reused by the page allocator later, align it to a page > boundary just like its size. > > Signed-off-by: Nicolas Pitre Applied to percpu/for-4.15 w/ Dennis's ack. Thanks. -- tejun From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f70.google.com (mail-pg0-f70.google.com [74.125.83.70]) by kanga.kvack.org (Postfix) with ESMTP id 4B0976B0033 for ; Wed, 4 Oct 2017 10:15:33 -0400 (EDT) Received: by mail-pg0-f70.google.com with SMTP id r18so5263313pgu.9 for ; Wed, 04 Oct 2017 07:15:33 -0700 (PDT) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id z11sor3390046ite.135.2017.10.04.07.15.32 for (Google Transport Security); Wed, 04 Oct 2017 07:15:32 -0700 (PDT) Date: Wed, 4 Oct 2017 07:15:28 -0700 From: Tejun Heo Subject: Re: [PATCH] mm/percpu.c: use smarter memory allocation for struct pcpu_alloc_info Message-ID: <20171004141528.GO3301751@devbig577.frc2.facebook.com> References: <20171003210540.GM3301751@devbig577.frc2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Nicolas Pitre Cc: Christoph Lameter , linux-mm@kvack.org, linux-kernel@vger.kernel.org Hello, On Tue, Oct 03, 2017 at 06:29:49PM -0400, Nicolas Pitre wrote: > Subject: [PATCH] percpu: don't forget to free the temporary struct pcpu_alloc_info > > Unlike the SMP case, the !SMP case does not free the memory for struct > pcpu_alloc_info allocated in setup_per_cpu_areas(). And to give it a > chance of being reused by the page allocator later, align it to a page > boundary just like its size. > > Signed-off-by: Nicolas Pitre Applied to percpu/for-4.15 w/ Dennis's ack. Thanks. -- tejun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org