summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorMiles Chen <miles.chen@mediatek.com>2018-02-01 01:15:47 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2018-02-01 02:18:36 +0100
commit0d2d5d40deb49314b6f701589e1cae3bca3aa94c (patch)
treeb066a9e18a35f8fa775e71c985f28920fcb4e98e /mm/slub.c
parentmm/slub.c: fix wrong address during slab padding restoration (diff)
downloadlinux-0d2d5d40deb49314b6f701589e1cae3bca3aa94c.tar.xz
linux-0d2d5d40deb49314b6f701589e1cae3bca3aa94c.zip
slub: remove obsolete comments of put_cpu_partial()
Commit d6e0b7fa1186 ("slub: make dead caches discard free slabs immediately") makes put_cpu_partial() run with preemption disabled and interrupts disabled when calling unfreeze_partials(). The comment: "put_cpu_partial() is done without interrupts disabled and without preemption disabled" looks obsolete, so remove it. Link: http://lkml.kernel.org/r/1516968550-1520-1-git-send-email-miles.chen@mediatek.com Signed-off-by: Miles Chen <miles.chen@mediatek.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> 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: Vladimir Davydov <vdavydov.dev@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 733ba32c031b..693b7074bc53 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2222,9 +2222,7 @@ static void unfreeze_partials(struct kmem_cache *s,
/*
* Put a page that was just frozen (in __slab_free) into a partial page
- * slot if available. This is done without interrupts disabled and without
- * preemption disabled. The cmpxchg is racy and may put the partial page
- * onto a random cpus partial slot.
+ * slot if available.
*
* If we did not find a slot then simply move all the partials to the
* per node partial list.