Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1568689

Re: [PATCH v2 02/10] slub: separate out sysfs_slab_release() from sysfs_slab_remove()

From Vladimir Davydov <vdavydov@tarantool.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 02/10] slub: separate out sysfs_slab_release() from sysfs_slab_remove()
Date 2017-01-27 22:20 +0100
Message-ID <t4m66-Rh-15@gated-at.bofh.it> (permalink)
References <t0LPs-54F-9@gated-at.bofh.it> <t0MVc-5Vf-25@gated-at.bofh.it> <t2VKG-48m-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jan 23, 2017 at 05:54:49PM -0500, Tejun Heo wrote:
> From 3b0cdd93b2d9bdea62ea6681e612bdae7a40d883 Mon Sep 17 00:00:00 2001
> From: Tejun Heo <tj@kernel.org>
> Date: Mon, 23 Jan 2017 17:53:18 -0500
> 
> Separate out slub sysfs removal and release, and call the former
> earlier from __kmem_cache_shutdown().  There's no reason to defer
> sysfs removal through RCU and this will later allow us to remove sysfs
> files way earlier during memory cgroup offline instead of release.
> 
> v2: Add slab_state >= FULL test to sysfs_slab_release() so that
>     kobject_put() is skipped for caches which aren't fully initialized
>     as before.  This most likely leaks the kmem_cache on init failure
>     as we're skipping the only release path.  Let's fix that up later.
> 
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Cc: Vladimir Davydov <vdavydov.dev@gmail.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>

Acked-by: Vladimir Davydov <vdavydov.dev@gmail.com>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCHSET v3] slab: make memcg slab destruction scalable Tejun Heo <tj@kernel.org> - 2017-01-18 01:10 +0100
  [PATCH 02/10] slub: separate out sysfs_slab_release() from sysfs_slab_remove() Tejun Heo <tj@kernel.org> - 2017-01-18 02:10 +0100
    [PATCH v2 02/10] slub: separate out sysfs_slab_release() from  sysfs_slab_remove() Tejun Heo <tj@kernel.org> - 2017-01-24 00:00 +0100
      Re: [PATCH v2 02/10] slub: separate out sysfs_slab_release() from  sysfs_slab_remove() Vladimir Davydov <vdavydov@tarantool.org> - 2017-01-27 22:20 +0100

csiph-web