> viommu_iotlb_sync_map() and viommu_flush_iotlb_all() read nr_endpoints > without the lock its writers take: the one place left after the endpoint > helpers were introduced. Order a sync only when the device holds the > domain, and read the count under the same lock as the writers. > > Signed-off-by: Anlai Lu <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=5
