lkml.org 
[lkml]   [2011]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] rcu: convert uses of rcu_assign_pointer(x, NULL) to RCU_INIT_POINTER
From
From: Stephen Hemminger <shemminger@vyatta.com>
Date: Mon, 1 Aug 2011 09:19:00 -0700

> When assigning a NULL value to an RCU protected pointer, no barrier
> is needed. The rcu_assign_pointer, used to handle that but will soon
> change to not handle the special case.
>
> Convert all rcu_assign_pointer of NULL value.
>
> //smpl
> @@ expression P; @@
>
> - rcu_assign_pointer(P, NULL)
> + RCU_INIT_POINTER(P, NULL)
>
> // </smpl>
>
>
> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

Acked-by: David S. Miller <davem@davemloft.net>


\
 
 \ /
  Last update: 2011-08-02 07:51    [W:0.251 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site