summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier González <javier@cnexlabs.com>2016-05-06 20:03:11 +0200
committerJens Axboe <axboe@fb.com>2016-05-06 12:51:10 -0600
commit57682b49154921306a5e7b79c883781230698878 (patch)
tree4a0455dbf7ac874244000ba8b78e28632c261f56
parent293a6e8e270f19f676ac4cbe6c653aaf27146ca6 (diff)
downloadtalos-op-linux-57682b49154921306a5e7b79c883781230698878.tar.gz
talos-op-linux-57682b49154921306a5e7b79c883781230698878.zip
lightnvm: do not free unused metadata on rrpc
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 <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--drivers/lightnvm/rrpc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c
index c7fef71f4276..ffcfee6684ba 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);
}
OpenPOWER on IntegriCloud