]> git.baikalelectronics.ru Git - kernel.git/commit
iova: Export alloc_iova_fast() and free_iova_fast()
authorXie Yongji <xieyongji@bytedance.com>
Tue, 31 Aug 2021 10:36:22 +0000 (18:36 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 6 Sep 2021 11:20:56 +0000 (07:20 -0400)
commitb686225e5a59c80b033b58be9591f06f1d82fb10
tree5779bd356d7e499a76d8e137eb7233bb93f0c479
parent13af76f8d89e78908143b072aec7eda8a6c546cc
iova: Export alloc_iova_fast() and free_iova_fast()

Export alloc_iova_fast() and free_iova_fast() so that
some modules can make use of the per-CPU cache to get
rid of rbtree spinlock in alloc_iova() and free_iova()
during IOVA allocation.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210831103634.33-2-xieyongji@bytedance.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/iommu/iova.c