mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + mm-slab-use-list_move-instead-of-list_del-list_add.patch added to -mm tree
@ 2016-07-19 23:33 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-07-19 23:33 UTC (permalink / raw)
  To: yongjun_wei, cl, iamjoonsoo.kim, penberg, rientjes, mm-commits


The patch titled
     Subject: mm/slab: use list_move instead of list_del/list_add
has been added to the -mm tree.  Its filename is
     mm-slab-use-list_move-instead-of-list_del-list_add.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-slab-use-list_move-instead-of-list_del-list_add.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-slab-use-list_move-instead-of-list_del-list_add.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Subject: mm/slab: use list_move instead of list_del/list_add

Using list_move() instead of list_del() + list_add() to avoid needlessly
poisoning the next and prev values.

Link: http://lkml.kernel.org/r/1468929772-9174-1-git-send-email-weiyj_lk@163.com
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/slab.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff -puN mm/slab.c~mm-slab-use-list_move-instead-of-list_del-list_add mm/slab.c
--- a/mm/slab.c~mm-slab-use-list_move-instead-of-list_del-list_add
+++ a/mm/slab.c
@@ -3452,8 +3452,7 @@ static void free_block(struct kmem_cache
 		n->free_objects -= cachep->num;
 
 		page = list_last_entry(&n->slabs_free, struct page, lru);
-		list_del(&page->lru);
-		list_add(&page->lru, list);
+		list_move(&page->lru, list);
 	}
 }
 
_

Patches currently in -mm which might be from yongjun_wei@trendmicro.com.cn are

mm-slab-use-list_move-instead-of-list_del-list_add.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-19 23:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-19 23:33 + mm-slab-use-list_move-instead-of-list_del-list_add.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).