Re: [PATCH] drm/amdgpu: Replace rcu_assign_pointer() with RCU_INIT_POINTER()

2016-05-02 Thread Alex Deucher
On Sun, May 1, 2016 at 11:26 AM, Christian König wrote: > Am 30.04.2016 um 21:00 schrieb Muhammad Falak R Wani: >> >> The rcu_assign_pointer() ensures that the initialization of a structure >> is carried out before storing a pointer to that structre. It is always >> safe to use RCU_INIT_POINTER()

Re: [PATCH] drm/amdgpu: Replace rcu_assign_pointer() with RCU_INIT_POINTER()

2016-05-01 Thread Christian König
Am 30.04.2016 um 21:00 schrieb Muhammad Falak R Wani: The rcu_assign_pointer() ensures that the initialization of a structure is carried out before storing a pointer to that structre. It is always safe to use RCU_INIT_POINTER() to NULL a pointer, instead of rcu_assign_pointer(). This results in s

[PATCH] drm/amdgpu: Replace rcu_assign_pointer() with RCU_INIT_POINTER()

2016-04-30 Thread Muhammad Falak R Wani
The rcu_assign_pointer() ensures that the initialization of a structure is carried out before storing a pointer to that structre. It is always safe to use RCU_INIT_POINTER() to NULL a pointer, instead of rcu_assign_pointer(). This results in slightly smaller/faster code. The following semantic pat