Skip to content
Commit 6fa3525b authored by Vijayanand Jitta's avatar Vijayanand Jitta Committed by Will Deacon
Browse files

iommu/iova: Free global iova rcache on iova alloc failure



When ever an iova alloc request fails we free the iova
ranges present in the percpu iova rcaches and then retry
but the global iova rcache is not freed as a result we could
still see iova alloc failure even after retry as global
rcache is holding the iova's which can cause fragmentation.
So, free the global iova rcache as well and then go for the
retry.

Signed-off-by: default avatarVijayanand Jitta <vjitta@codeaurora.org>
Reviewed-by: default avatarRobin Murphy <robin.murphy@arm.com>
Acked-by: default avatarJohn Garry <john.garry@huaqwei.com>
Link: https://lore.kernel.org/r/1601451864-5956-2-git-send-email-vjitta@codeaurora.org


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 4e89dce7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment