[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110801.224401.31810103988544647.davem@davemloft.net>
Date: Mon, 01 Aug 2011 22:44:01 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: shemminger@...tta.com
Cc: eric.dumazet@...il.com, paulmck@...ux.vnet.ibm.com,
mchan@...adcom.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] rcu: convert uses of rcu_assign_pointer(x, NULL) to
RCU_INIT_POINTER
From: Stephen Hemminger <shemminger@...tta.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@...tta.com>
Acked-by: David S. Miller <davem@...emloft.net>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists