diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-05-01 00:27:43 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-01 02:04:04 +0200 |
commit | d6d67e7231c97d535069970c840d33fc6c4350ee (patch) | |
tree | c6aee26b6c54d52a8b60370674b9d2025f7f1229 /fs/eventpoll.c | |
parent | epoll: cleanup: hoist out f_op->poll calls (diff) | |
download | linux-d6d67e7231c97d535069970c840d33fc6c4350ee.tar.xz linux-d6d67e7231c97d535069970c840d33fc6c4350ee.zip |
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 '')
-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) { 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 |