• Christoph Lameter's avatar
    slub: Fix partial count comparison confusion · 81107188
    Christoph Lameter authored
    deactivate_slab() has the comparison if more than the minimum number of
    partial pages are in the partial list wrong. An effect of this may be that
    empty pages are not freed from deactivate_slab(). The result could be an
    OOM due to growth of the partial slabs per node. Frees mostly occur from
    __slab_free which is okay so this would only affect use cases where a lot
    of switching around of per cpu slabs occur.
    
    Switching per cpu slabs occurs with high frequency if debugging options are
    enabled.
    Reported-and-tested-by: default avatarXiaotian Feng <xtfeng@gmail.com>
    Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
    Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
    81107188
slub.c 123 KB