summaryrefslogtreecommitdiff
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2020-04-16 01:26:55 +0300
committerPaul E. McKenney <paulmck@kernel.org>2020-06-29 21:58:49 +0300
commit7ee880b7bf1dea88d0a472b775aebdb4fb6bf860 (patch)
tree18e3addaf589f8769016e53b649fbb96a15fd498 /mm/mmap.c
parent9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68 (diff)
downloadlinux-7ee880b7bf1dea88d0a472b775aebdb4fb6bf860.tar.xz
rcu: Initialize and destroy rcu_synchronize only when necessary
The __wait_rcu_gp() function unconditionally initializes and cleans up each element of rs_array[], whether used or not. This is slightly wasteful and rather confusing, so this commit skips both initialization and cleanup for duplicate callback functions. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions