Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933721AbbLOV1V (ORCPT ); Tue, 15 Dec 2015 16:27:21 -0500 Received: from gum.cmpxchg.org ([85.214.110.215]:49984 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753320AbbLOV1U (ORCPT ); Tue, 15 Dec 2015 16:27:20 -0500 Date: Tue, 15 Dec 2015 16:26:39 -0500 From: Johannes Weiner To: "Wang, Zhi A" Cc: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "akpm@linux-foundation.org" , Ingo Molnar Subject: Re: [PATCH] mm: mempool: Factor out mempool_refill() Message-ID: <20151215212638.GA17162@cmpxchg.org> References: <1449978390-10931-1-git-send-email-zhi.a.wang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 923 Lines: 18 On Mon, Dec 14, 2015 at 11:09:43AM +0000, Wang, Zhi A wrote: > This patch factors out mempool_refill() from mempool_resize(). It's reasonable > that the mempool user wants to refill the pool immdiately when it has chance > e.g. inside a sleepible context, so that next time in the IRQ context the pool > would have much more available elements to allocate. > > After the refactor, mempool_refill() can also executes with mempool_resize() > /mempool_alloc/mempool_free() or another mempool_refill(). > > Signed-off-by: Zhi Wang Who is going to call that function? Adding a new interace usually comes with a user, or as part of a series that adds users. -- 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/