From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by kanga.kvack.org (Postfix) with ESMTP id 8290C6B0038 for ; Tue, 15 Dec 2015 16:27:22 -0500 (EST) Received: by mail-wm0-f44.google.com with SMTP id n186so114433362wmn.0 for ; Tue, 15 Dec 2015 13:27:22 -0800 (PST) Received: from gum.cmpxchg.org (gum.cmpxchg.org. [85.214.110.215]) by mx.google.com with ESMTPS id kd10si4736588wjc.145.2015.12.15.13.27.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Dec 2015 13:27:21 -0800 (PST) Date: Tue, 15 Dec 2015 16:26:39 -0500 From: Johannes Weiner 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: Sender: owner-linux-mm@kvack.org List-ID: To: "Wang, Zhi A" Cc: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "akpm@linux-foundation.org" , Ingo Molnar 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, 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