diff options
| author | Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> | 2026-07-17 20:16:07 +0530 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-07-22 13:07:58 +0000 |
| commit | a05b67cd45ad09a19f41b2d37255da714512e0ca (patch) | |
| tree | 28a56d3d8e29704b753108081d9013d3c492690c /tools/perf/scripts/python/parallel-perf.py | |
| parent | 3c748a5554f961aac8e9ab1e28b7884b1c525012 (diff) | |
iommu/qcom: Publish pgtbl_ops before releasing init_mutex
qcom_domain->pgtbl_ops was assigned after mutex_unlock(). Another thread
calling qcom_iommu_init_domain() would see qcom_domain->iommu already set
(domain fully initialized) and skip re-initialization under the mutex.
If it then called qcom_iommu_map() before the first thread set pgtbl_ops,
it would observe a NULL ops pointer and return -ENODEV for valid mappings.
Move the assignment to before mutex_unlock() so that once the mutex is
released the domain is fully visible to concurrent operations.
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions
