mm: Rename SLAB_DESTROY_BY_RCU to SLAB_TYPESAFE_BY_RCU
A group of Linux kernel hackers reported chasing a bug that resulted from their assumption that SLAB_DESTROY_BY_RCU provided an existence guarantee, that is, that no block from such a slab would be reallocated during an RCU read-side critical section. Of course, that is not the case. Instead, SLAB_DESTROY_BY_RCU only prevents freeing of an entire slab of blocks. However, there is a phrase for this, namely "type safety". This commit therefore renames SLAB_DESTROY_BY_RCU to SLAB_TYPESAFE_BY_RCU in order to avoid future instances of this sort of confusion. Signed-off-by:Paul E. McKenney <paulmck@linux.vnet.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> Acked-by:
Johannes Weiner <hannes@cmpxchg.org> Acked-by:
Vlastimil Babka <vbabka@suse.cz> [ paulmck: Add comments mentioning the old name, as requested by Eric Dumazet, in order to help people familiar with the old name find the new one. ] Acked-by:
David Rientjes <rientjes@google.com>
Showing
- Documentation/RCU/00-INDEX 1 addition, 1 deletionDocumentation/RCU/00-INDEX
- Documentation/RCU/rculist_nulls.txt 3 additions, 3 deletionsDocumentation/RCU/rculist_nulls.txt
- Documentation/RCU/whatisRCU.txt 2 additions, 1 deletionDocumentation/RCU/whatisRCU.txt
- drivers/gpu/drm/i915/i915_gem.c 1 addition, 1 deletiondrivers/gpu/drm/i915/i915_gem.c
- drivers/gpu/drm/i915/i915_gem_request.h 1 addition, 1 deletiondrivers/gpu/drm/i915/i915_gem_request.h
- drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c 1 addition, 1 deletiondrivers/staging/lustre/lustre/ldlm/ldlm_lockd.c
- fs/jbd2/journal.c 1 addition, 1 deletionfs/jbd2/journal.c
- fs/signalfd.c 1 addition, 1 deletionfs/signalfd.c
- include/linux/dma-fence.h 2 additions, 2 deletionsinclude/linux/dma-fence.h
- include/linux/slab.h 4 additions, 2 deletionsinclude/linux/slab.h
- include/net/sock.h 1 addition, 1 deletioninclude/net/sock.h
- kernel/fork.c 2 additions, 2 deletionskernel/fork.c
- kernel/signal.c 1 addition, 1 deletionkernel/signal.c
- mm/kasan/kasan.c 3 additions, 3 deletionsmm/kasan/kasan.c
- mm/kmemcheck.c 1 addition, 1 deletionmm/kmemcheck.c
- mm/rmap.c 2 additions, 2 deletionsmm/rmap.c
- mm/slab.c 3 additions, 3 deletionsmm/slab.c
- mm/slab.h 2 additions, 2 deletionsmm/slab.h
- mm/slab_common.c 3 additions, 3 deletionsmm/slab_common.c
- mm/slob.c 3 additions, 3 deletionsmm/slob.c
Loading
Please register or sign in to comment