summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-04-30 15:27:43 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-30 17:04:04 -0700
commitd6d67e7231c97d535069970c840d33fc6c4350ee (patch)
treec6aee26b6c54d52a8b60370674b9d2025f7f1229 /fs
parent450d89ec0a91dbad81adaa635fdb1325b57f8d69 (diff)
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 <normalperson@yhbt.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/eventpoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/eventpoll.c b/fs/eventpoll.c
index c5d9880b5fcf..277cc38aeda5 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