OSDN Git Service

iommu/iova: Put free_iova_mem() outside of spinlock iova_rbtree_lock
authorXiang Chen <chenxiang66@hisilicon.com>
Mon, 10 May 2021 11:53:02 +0000 (19:53 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 8 Jun 2021 12:15:46 +0000 (14:15 +0200)
commit7978724f399ae7eba5b6d36ae5a7224d5bf3859a
tree359a98708b354f3266e9e5f27df1ded1abd67549
parent571f316074a203e979ea90211d9acf423dfe5f46
iommu/iova: Put free_iova_mem() outside of spinlock iova_rbtree_lock

It is not necessary to put free_iova_mem() inside of spinlock/unlock
iova_rbtree_lock which only leads to more completion for the spinlock.
It has a small promote on the performance after the change. And also
rename private_free_iova() as remove_iova() because the function will not
free iova after that change.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/1620647582-194621-1-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iova.c