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)
commita93a962669cdbe56bb0bcd88156f0f1598f31c88
tree5779bd356d7e499a76d8e137eb7233bb93f0c479
parent6105d1fe6f4c24ce8c13e2e6568b16b76e04983d
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