]> git.baikalelectronics.ru Git - kernel.git/commit
iova: Remove iovad->rcaches check in iova_rcache_get()
authorJohn Garry <john.garry@huawei.com>
Wed, 7 Sep 2022 13:34:41 +0000 (21:34 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 9 Sep 2022 07:27:03 +0000 (09:27 +0200)
commit8af298eb934fc77863ca3110baba5f59522a4f0d
tree42fd93c1b6d29310be0630665e9928e77e806bf3
parenta777fda08ccb23f1e593c7eb85258dd64e7a077d
iova: Remove iovad->rcaches check in iova_rcache_get()

The iovad->rcaches check in iova_rcache_get() is pretty much useless
without the same check in iova_rcache_insert().

Instead of adding this symmetric check to fastpath iova_rcache_insert(),
drop the check in iova_rcache_get() in favour of making the IOVA domain
rcache init more robust to failure in future.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/1662557681-145906-4-git-send-email-john.garry@huawei.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iova.c