diff options
author | Alexander Potapenko <glider@google.com> | 2017-09-06 16:19:15 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-06 17:27:24 -0700 |
commit | ea37df54d2b7950d607800ee417a1d59b95068c2 (patch) | |
tree | c8e59d36c0e421b92e9759d2326acb9dba4f5afb /init | |
parent | 964f14a0d350486d17cfd24b3b7dc4f7c4bdc4d3 (diff) | |
download | linux-ea37df54d2b7950d607800ee417a1d59b95068c2.tar.gz linux-ea37df54d2b7950d607800ee417a1d59b95068c2.tar.bz2 linux-ea37df54d2b7950d607800ee417a1d59b95068c2.zip |
slub: tidy up initialization ordering
- free_kmem_cache_nodes() frees the cache node before nulling out a
reference to it
- init_kmem_cache_nodes() publishes the cache node before initializing
it
Neither of these matter at runtime because the cache nodes cannot be
looked up by any other thread. But it's neater and more consistent to
reorder these.
Link: http://lkml.kernel.org/r/20170707083408.40410-1-glider@google.com
Signed-off-by: Alexander Potapenko <glider@google.com>
Acked-by: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions