summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2020-04-15 22:26:55 +0000
committerPaul E. McKenney <paulmck@kernel.org>2020-06-29 11:58:49 -0700
commit7ee880b7bf1dea88d0a472b775aebdb4fb6bf860 (patch)
tree18e3addaf589f8769016e53b649fbb96a15fd498 /mm
parent9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68 (diff)
downloadlwn-7ee880b7bf1dea88d0a472b775aebdb4fb6bf860.tar.gz
lwn-7ee880b7bf1dea88d0a472b775aebdb4fb6bf860.zip
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')
0 files changed, 0 insertions, 0 deletions