Re: [PATCH] iommu/iova: put free_iova_mem() outside of spinlock iova_rbtree_lock

2021-04-14 Thread chenxiang (M)
Hi Robin, 在 2021/4/14 21:17, Robin Murphy 写道: On 2021-04-14 07:38, chenxiang wrote: From: Xiang Chen 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

Re: [PATCH] iommu/iova: put free_iova_mem() outside of spinlock iova_rbtree_lock

2021-04-14 Thread Robin Murphy
On 2021-04-14 07:38, chenxiang wrote: From: Xiang Chen 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. This seems not entirely unreasonable,

[PATCH] iommu/iova: put free_iova_mem() outside of spinlock iova_rbtree_lock

2021-04-13 Thread chenxiang
From: Xiang Chen 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. Signed-off-by: Xiang Chen --- drivers/iommu/iova.c | 5 +++-- 1 file changed,