projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd62245
)
ntb: ntb_perf missing dmaengine_unmap_put
author
Dave Jiang
<dave.jiang@intel.com>
Mon, 30 Jan 2017 21:21:17 +0000
(14:21 -0700)
committer
Jon Mason
<jdmason@kudzu.us>
Fri, 17 Feb 2017 04:11:26 +0000
(23:11 -0500)
In the normal I/O execution path, ntb_perf is missing a call to
dmaengine_unmap_put() after submission. That causes us to leak
unmap objects.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Fixes:
8a7b6a77
("ntb: ntb perf tool")
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ntb/test/ntb_perf.c
b/drivers/ntb/test/ntb_perf.c
index e75d4fdc08663905eace859cff6cdebdb97e92b5..434e1d474f3340e1d35b48c924a6bebfbfb0fa67 100644
(file)
--- a/
drivers/ntb/test/ntb_perf.c
+++ b/
drivers/ntb/test/ntb_perf.c
@@
-265,6
+265,8
@@
static ssize_t perf_copy(struct pthr_ctx *pctx, char __iomem *dst,
if (dma_submit_error(cookie))
goto err_set_unmap;
+ dmaengine_unmap_put(unmap);
+
atomic_inc(&pctx->dma_sync);
dma_async_issue_pending(chan);