diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-04-30 18:27:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 20:04:04 -0400 |
commit | d6d67e7231c97d535069970c840d33fc6c4350ee (patch) | |
tree | c6aee26b6c54d52a8b60370674b9d2025f7f1229 /fs/eventpoll.c | |
parent | 450d89ec0a91dbad81adaa635fdb1325b57f8d69 (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/eventpoll.c')
-rw-r--r-- | fs/eventpoll.c | 2 |
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) | |||
1213 | { | 1213 | { |
1214 | struct wakeup_source *ws = ep_wakeup_source(epi); | 1214 | struct wakeup_source *ws = ep_wakeup_source(epi); |
1215 | 1215 | ||
1216 | rcu_assign_pointer(epi->ws, NULL); | 1216 | RCU_INIT_POINTER(epi->ws, NULL); |
1217 | 1217 | ||
1218 | /* | 1218 | /* |
1219 | * wait for ep_pm_stay_awake_rcu to finish, synchronize_rcu is | 1219 | * wait for ep_pm_stay_awake_rcu to finish, synchronize_rcu is |