* [folded-merged] slub-use-new-node-functions-fix.patch removed from -mm tree
@ 2014-08-06 22:43 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2014-08-06 22:43 UTC (permalink / raw)
To: cl, cl, iamjoonsoo.kim, penberg, rientjes, mm-commits
The patch titled
Subject: slub-use-new-node-functions-fix
has been removed from the -mm tree. Its filename was
slub-use-new-node-functions-fix.patch
This patch was dropped because it was folded into slub-use-new-node-functions.patch
------------------------------------------------------
From: Christoph Lameter <cl@gentwo.org>
Subject: slub-use-new-node-functions-fix
On Wed, 11 Jun 2014, David Rientjes wrote:
> > + for_each_kmem_cache_node(s, node, n) {
> >
> > free_partial(s, n);
> > if (n->nr_partial || slabs_node(s, node))
>
> Newline not removed?
Ok got through the file and removed all the lines after
for_each_kmem_cache_node.
>
> > @@ -3407,11 +3401,7 @@ int __kmem_cache_shrink(struct kmem_cach
> > return -ENOMEM;
> >
> > flush_all(s);
> > - for_each_node_state(node, N_NORMAL_MEMORY) {
> > - n = get_node(s, node);
> > -
> > - if (!n->nr_partial)
> > - continue;
> > + for_each_kmem_cache_node(s, node, n) {
> >
> > for (i = 0; i < objects; i++)
> > INIT_LIST_HEAD(slabs_by_inuse + i);
>
> Is there any reason not to keep the !n->nr_partial check to avoid taking
> n->list_lock unnecessarily?
No this was simply a mistake the check needs to be preserved.
Subject: slub: Fix up earlier patch
Signed-off-by: Christoph Lameter <cl@linux.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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/slub.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff -puN mm/slub.c~slub-use-new-node-functions-fix mm/slub.c
--- a/mm/slub.c~slub-use-new-node-functions-fix
+++ a/mm/slub.c
@@ -3216,7 +3216,6 @@ static inline int kmem_cache_close(struc
flush_all(s);
/* Attempt to free all objects */
for_each_kmem_cache_node(s, node, n) {
-
free_partial(s, n);
if (n->nr_partial || slabs_node(s, node))
return 1;
@@ -3402,6 +3401,8 @@ int __kmem_cache_shrink(struct kmem_cach
flush_all(s);
for_each_kmem_cache_node(s, node, n) {
+ if (!n->nr_partial)
+ continue;
for (i = 0; i < objects; i++)
INIT_LIST_HEAD(slabs_by_inuse + i);
@@ -4334,7 +4335,6 @@ static ssize_t show_slab_objects(struct
struct kmem_cache_node *n;
for_each_kmem_cache_node(s, node, n) {
-
if (flags & SO_TOTAL)
x = count_partial(n, count_total);
else if (flags & SO_OBJECTS)
@@ -5324,7 +5324,6 @@ void get_slabinfo(struct kmem_cache *s,
struct kmem_cache_node *n;
for_each_kmem_cache_node(s, node, n) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-06 22:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-06 22:43 [folded-merged] slub-use-new-node-functions-fix.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.