]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: checking whether swiotlb buffer is full with io_tlb_used
authorDongli Zhang <dongli.zhang@oracle.com>
Fri, 18 Jan 2019 07:10:28 +0000 (15:10 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 12 Feb 2019 17:53:01 +0000 (12:53 -0500)
commit85d4418f4e34c14770c238aeb9941c6357cdc270
tree4c674fb2f2dcae13ba33ff82f0e937a66ce3b2e7
parent982e89369f4429a3dee075a7092a0e2f69c06359
swiotlb: checking whether swiotlb buffer is full with io_tlb_used

This patch uses io_tlb_used to help check whether swiotlb buffer is full.
io_tlb_used is no longer used for only debugfs. It is also used to help
optimize swiotlb_tbl_map_single().

Suggested-by: Joe Jin <joe.jin@oracle.com>
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c