]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - mm/slob.c
mm: Rename SLAB_DESTROY_BY_RCU to SLAB_TYPESAFE_BY_RCU
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 18 Jan 2017 10:53:44 +0000 (02:53 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 18 Apr 2017 18:42:36 +0000 (11:42 -0700)
commit5f0d5a3ae7cff0d7fa943c199c3a2e44f23e1fac
treeb7ba2116923723e193dfe7c633ec10056c6b1b53
parent4495c08e84729385774601b5146d51d9e5849f81
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>
30 files changed:
Documentation/RCU/00-INDEX
Documentation/RCU/rculist_nulls.txt
Documentation/RCU/whatisRCU.txt
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_request.h
drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c
fs/jbd2/journal.c
fs/signalfd.c
include/linux/dma-fence.h
include/linux/slab.h
include/net/sock.h
kernel/fork.c
kernel/signal.c
mm/kasan/kasan.c
mm/kmemcheck.c
mm/rmap.c
mm/slab.c
mm/slab.h
mm/slab_common.c
mm/slob.c
mm/slub.c
net/dccp/ipv4.c
net/dccp/ipv6.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c
net/llc/af_llc.c
net/llc/llc_conn.c
net/llc/llc_sap.c
net/netfilter/nf_conntrack_core.c
net/smc/af_smc.c