diff options
author | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-11-06 19:24:33 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-11-27 09:21:45 -0800 |
commit | 6564a25e6c185e65ca3148ed6e18f80882f6798f (patch) | |
tree | 6059903229020ea7eea1f048b22ae3dbd44a0024 /mm/slab.c | |
parent | 36bd1a8e91c66e9def12958547548aa549de9cbf (diff) | |
download | linux-rpi-6564a25e6c185e65ca3148ed6e18f80882f6798f.tar.gz linux-rpi-6564a25e6c185e65ca3148ed6e18f80882f6798f.tar.bz2 linux-rpi-6564a25e6c185e65ca3148ed6e18f80882f6798f.zip |
slab: Replace synchronize_sched() with synchronize_rcu()
Now that synchronize_rcu() waits for preempt-disable regions of code
as well as RCU read-side critical sections, synchronize_sched() can be
replaced by synchronize_rcu(). This commit therefore makes this change.
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: <linux-mm@kvack.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slab.c b/mm/slab.c index 2a5654bb3b3f..3abb9feb3818 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -962,10 +962,10 @@ static int setup_kmem_cache_node(struct kmem_cache *cachep, * To protect lockless access to n->shared during irq disabled context. * If n->shared isn't NULL in irq disabled context, accessing to it is * guaranteed to be valid until irq is re-enabled, because it will be - * freed after synchronize_sched(). + * freed after synchronize_rcu(). */ if (old_shared && force_change) - synchronize_sched(); + synchronize_rcu(); fail: kfree(old_shared); |