]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
busdma_iommu: Fine-grained locking for the dmamap's map list
authorAlan Cox <alc@FreeBSD.org>
Wed, 22 Jun 2022 21:51:47 +0000 (16:51 -0500)
committerAlan Cox <alc@FreeBSD.org>
Sat, 25 Jun 2022 05:59:23 +0000 (00:59 -0500)
commiteeb46578c21ad37866f49f3bbb3ac738b44abbf6
treeab9b90ef8c20c59a5070e506a8124fec0522a360
parentc11e64ce513083ab1841c6ff88544e839fa37a82
busdma_iommu: Fine-grained locking for the dmamap's map list

Introduce fine-grained locking on the dmamap's list of map entries,
replacing the use of the domain lock.  This is not the most significant
source of lock contention, but it is the easiest to address.

Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D35557
sys/dev/iommu/busdma_iommu.c
sys/dev/iommu/busdma_iommu.h