Return-Path: Subject: Re: [PATCH 1/6] lightnvm: pblk: check for failed mempool alloc. To: =?UTF-8?Q?Javier_Gonz=c3=a1lez?= Cc: Johannes Thumshirn , =?UTF-8?Q?Matias_Bj=c3=b8rling?= , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Matias_Bj=c3=b8rling?= References: <1504710066-4699-1-git-send-email-javier@cnexlabs.com> <1504710066-4699-2-git-send-email-javier@cnexlabs.com> <20170906150811.sa3vrrkbpv5rffeb@linux-x5ow.site> From: Jens Axboe Message-ID: <086e6df7-65d8-57b7-6605-d585985a3ddf@kernel.dk> Date: Wed, 6 Sep 2017 09:13:46 -0600 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 List-ID: On 09/06/2017 09:12 AM, Javier González wrote: >> On 6 Sep 2017, at 17.09, Jens Axboe wrote: >> >> On 09/06/2017 09:08 AM, Johannes Thumshirn wrote: >>> On Wed, Sep 06, 2017 at 05:01:01PM +0200, Javier González wrote: >>>> Check for failed mempool allocations and act accordingly. >>> >>> Are you sure it is needed? Quoting from mempool_alloc()s Documentation: >>> "[...] Note that due to preallocation, this function *never* fails when called >>> from process contexts. (it might fail if called from an IRQ context.) [...]" >> >> It's not needed, mempool() will never fail if __GFP_WAIT is set in the >> mask. The use case here is GFP_KERNEL, which does include __GFP_WAIT. > > Thanks for the clarification. Do you just drop the patch, or do you want > me to re-send the series? No need to resend. I'll pick up the others in a day or two, once people have had some time to go over them. -- Jens Axboe