From: Eric Wong Date: Tue, 30 Apr 2013 22:27:43 +0000 (-0700) Subject: epoll: cleanup: use RCU_INIT_POINTER when nulling X-Git-Tag: v3.12-rc1~951^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6d67e7231c97d535069970c840d33fc6c4350ee;p=kernel%2Fkernel-generic.git epoll: cleanup: use RCU_INIT_POINTER when nulling It is always safe to use RCU_INIT_POINTER to NULL a pointer. This results in slightly smaller/faster code. Signed-off-by: Eric Wong Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/eventpoll.c b/fs/eventpoll.c index c5d9880..277cc38 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1213,7 +1213,7 @@ static noinline void ep_destroy_wakeup_source(struct epitem *epi) { struct wakeup_source *ws = ep_wakeup_source(epi); - rcu_assign_pointer(epi->ws, NULL); + RCU_INIT_POINTER(epi->ws, NULL); /* * wait for ep_pm_stay_awake_rcu to finish, synchronize_rcu is