From patchwork Fri May 6 18:03:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matias_Bj=C3=B8rling?= X-Patchwork-Id: 9035091 Return-Path: X-Original-To: patchwork-linux-block@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C73019F6CD for ; Fri, 6 May 2016 18:04:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ED94B2035B for ; Fri, 6 May 2016 18:04:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 18C2120274 for ; Fri, 6 May 2016 18:04:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932274AbcEFSDz (ORCPT ); Fri, 6 May 2016 14:03:55 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:35323 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932223AbcEFSDv (ORCPT ); Fri, 6 May 2016 14:03:51 -0400 Received: by mail-wm0-f49.google.com with SMTP id e201so66840937wme.0 for ; Fri, 06 May 2016 11:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bjorling.me; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AMvVbko5poMIpnDr58ZNkyuvJ6QjLiL9DxXv4hKmDvA=; b=uy+w68ZFeEgEx4M5rqHY3SXVVfBLWX/wRevjBv6b1He/B49WUU7SKaFI1uaSOUWaBN 9WLAo6R3gRHXKNd08iRGSvRsOctaFH58p05aOKmzgjtxaKcIz9djoBkGNiP5mVlOeDLm 7gIgNDKz4M0gg/T2BTLF4ygzGmdlbeQcz+8XE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AMvVbko5poMIpnDr58ZNkyuvJ6QjLiL9DxXv4hKmDvA=; b=jkCVHuWqtupRxhM+FYfh96iVJme/xc3xm1EjoM9zobkC3CqHPUjWqCbx6CjFBDviHZ BNvW9koZQYY6NRMpAXme2Vhh18viXCuCtPxC9n92nFe7QNK45mIixt20IZlLRsHJKZgm VrF7aDGY/uIjJsdb6MiyyfLAjVM7InIAZjxjFIaCmQazUqb7JKbVXwV67XB7Jw6LRww1 vbTGEOCQN6vCm4xAIoQCHeiffvew7t2EZ6MR45DiMjcI7loRNzbcx3LnTWZLLmt1U1RB umVPI3cgYBQUzVtuBs0ydTYhH+p6/qQKI7YYift1d+AyKr7RgkGzFYOqg4Dmk05Tlg/A hLQw== X-Gm-Message-State: AOPr4FXK7PmN+cUVJwz1keNh2eLIXdh8mAGIY3u20OSipnGJdCb3wXzJk4vw1EsaO27Szw== X-Received: by 10.28.167.193 with SMTP id q184mr11274163wme.63.1462557830581; Fri, 06 May 2016 11:03:50 -0700 (PDT) Received: from Macroninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id kz1sm16076559wjc.46.2016.05.06.11.03.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 May 2016 11:03:50 -0700 (PDT) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, axboe@fb.com Cc: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH 18/28] lightnvm: do not free unused metadata on rrpc Date: Fri, 6 May 2016 20:03:11 +0200 Message-Id: <1462557801-24974-19-git-send-email-m@bjorling.me> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1462557801-24974-1-git-send-email-m@bjorling.me> References: <1462557801-24974-1-git-send-email-m@bjorling.me> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Javier González 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 Signed-off-by: Matias Bjørling --- 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); }