aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorHangbin Liu <[email protected]>2025-09-05 09:15:31 +0000
committerPaolo Abeni <[email protected]>2025-09-11 09:49:19 +0000
commit8884c693991333ae065830554b9b0c96590b1bb2 (patch)
tree9fe53993506ffcb3baa0778bd88a2295cdebc0e2 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentMerge tag 'nf-25-09-10-v2' of https://git.kernel.org/pub/scm/linux/kernel/git... (diff)
downloadkernel-8884c693991333ae065830554b9b0c96590b1bb2.tar.gz
kernel-8884c693991333ae065830554b9b0c96590b1bb2.zip
hsr: use rtnl lock when iterating over ports
hsr_for_each_port is called in many places without holding the RCU read lock, this may trigger warnings on debug kernels. Most of the callers are actually hold rtnl lock. So add a new helper hsr_for_each_port_rtnl to allow callers in suitable contexts to iterate ports safely without explicit RCU locking. This patch only fixed the callers that is hold rtnl lock. Other caller issues will be fixed in later patches. Fixes: c5a759117210 ("net/hsr: Use list_head (and rcu) instead of array for slave devices.") Signed-off-by: Hangbin Liu <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions