Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iommu: Disable caching of IOVA rb-tree node
Cached rb-tree node is maintained in IOVA allocation/free code. This node is updated whenever new IOVA allocation is requested or and IOVA is freed. There is a bug is caching logic which is causing some freed IOVAs not to be used as during allocation request, free IOVAs are checked in rb-tree beginning from cached node. Fix this by traversing whole rb-tree for free node from start during each IOVA allocation request. Bug 3697066 Change-Id: I9a3248fd2e39988aefdb54521641f37b22db4b78 Signed-off-by: Ashish Mhetre <[email protected]> Reviewed-on: https://git-master.nvidia.com/r/c/linux-4.9/+/2874969 Reviewed-by: Krishna Reddy <[email protected]> Reviewed-by: Sachin Nikam <[email protected]> GVS: Gerrit_Virtual_Submit <[email protected]>
- Loading branch information