Patch "ntb: ntb_perf missing dmaengine_unmap_put" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
ntb: ntb_perf missing dmaengine_unmap_put
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ntb-ntb_perf-missing-dmaengine_unmap_put.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
9644347c5240d0ee3ba7472ef332aaa4ff4db398Mon Sep 17 00:00:00 2001
From: Dave Jiang <[email protected]>
Date: Mon, 30 Jan 2017 14:21:17 -0700
Subject: ntb: ntb_perf missing dmaengine_unmap_put
From: Dave Jiang <[email protected]>
commit 9644347c5240d0ee3ba7472ef332aaa4ff4db398 upstream.
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.
--- drivers/ntb/test/ntb_perf.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/ntb/test/ntb_perf.c +2 -0
@@ -265,6 +265,8 @@ static ssize_t perf_copy(struct pthr_ctxif (dma_submit_error (cookie)) goto err_set_unmap; +dmaengine_unmap_put (unmap); +atomic_inc (&pctx->dma_sync);dma_async_issue_pending (chan);
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/ntb-ntb_perf-missing-dmaengine_unmap_put.patch