Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752546AbcD1Nlr (ORCPT ); Thu, 28 Apr 2016 09:41:47 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:35755 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752189AbcD1Nlq (ORCPT ); Thu, 28 Apr 2016 09:41:46 -0400 Subject: Re: [PATCH 1/3] lightnvm: do not free unused metadata on rrpc To: =?UTF-8?Q?Javier_Gonz=c3=a1lez?= References: <1461778138-23116-1-git-send-email-javier@javigon.com> Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, =?UTF-8?Q?Javier_Gonz=c3=a1lez?= From: =?UTF-8?Q?Matias_Bj=c3=b8rling?= Message-ID: <57221316.7070102@lightnvm.io> Date: Thu, 28 Apr 2016 15:41:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1461778138-23116-1-git-send-email-javier@javigon.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 786 Lines: 25 On 04/27/2016 07:28 PM, Javier González wrote: > rrpc does not save any metadata on a given request. Thus, do not attempt > to free the metadata dma region. > > Signed-off-by: Javier González > --- > drivers/lightnvm/rrpc.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c > index c7fef71..ffcfee6 100644 > --- a/drivers/lightnvm/rrpc.c > +++ b/drivers/lightnvm/rrpc.c > @@ -711,8 +711,6 @@ static void rrpc_end_io(struct nvm_rq *rqd) > > if (npages > 1) > nvm_dev_dma_free(rrpc->dev, rqd->ppa_list, rqd->dma_ppa_list); > - if (rqd->metadata) > - nvm_dev_dma_free(rrpc->dev, rqd->metadata, rqd->dma_metadata); > > mempool_free(rqd, rrpc->rq_pool); > } > Thanks Javier. Applied for 4.7.