aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c
diff options
context:
space:
mode:
authorFlorian Westphal <[email protected]>2017-12-02 21:44:05 +0100
committerDavid S. Miller <[email protected]>2017-12-04 11:32:22 -0500
commitaddf9b90de22f7aaad0db39bccb5d51ac47dd4e1 (patch)
treec503ab68da10306eae7170efb19dd614ba9cc93e /drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c
parent9753c21f55d4ca2b02bbe81448f2a552ce79d068 (diff)
net: rtnetlink: use rcu to free rtnl message handlers
rtnetlink is littered with READ_ONCE() because we can have read accesses while another cpu can write to the structure we're reading by (un)registering doit or dumpit handlers. This patch changes this so that (un)registering cpu allocates a new structure and then publishes it via rcu_assign_pointer, i.e. once another cpu can see such pointer no modifications will occur anymore. based on initial patch from Peter Zijlstra. Cc: Peter Zijlstra <[email protected]> Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c')
0 files changed, 0 insertions, 0 deletions