diff options
author | Vasant Hegde <[email protected]> | 2024-10-30 06:35:51 +0000 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2024-10-30 11:06:44 +0100 |
commit | d6b47dec368400a62d2b9d44c8e136fc15eac72c (patch) | |
tree | 8ab77bacd5cacee5631d2a689d153f643fa65a9a /scripts/clang-tools/gen_compile_commands.py | |
parent | 07bbd660dbd6ff03907d9ddbdfe9deabbd18ac4d (diff) |
iommu/amd: Reduce domain lock scope in attach device path
Currently attach device path takes protection domain lock followed by
dev_data lock. Most of the operations in this function is specific to
device data except pdom_attach_iommu() where it updates protection
domain structure. Hence reduce the scope of protection domain lock.
Note that this changes the locking order. Now it takes device lock
before taking doamin lock (group->mutex -> dev_data->lock ->
pdom->lock). dev_data->lock is used only in device attachment path.
So changing order is fine. It will not create any issue.
Finally move numa node assignment to pdom_attach_iommu().
Signed-off-by: Vasant Hegde <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions