All of lore.kernel.org
 help / color / mirror / Atom feed
* [to-be-updated] mm-z3fold-remove-unneeded-spinlock-in-z3fold_alloc.patch removed from -mm tree
@ 2024-02-21 22:24 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2024-02-21 22:24 UTC (permalink / raw)
  To: mm-commits, hannes, cerasuolodomenico, hezhongkun.hzk, akpm


The quilt patch titled
     Subject: mm/z3fold: remove unneeded spinlock in z3fold_alloc
has been removed from the -mm tree.  Its filename was
     mm-z3fold-remove-unneeded-spinlock-in-z3fold_alloc.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
From: Zhongkun He <hezhongkun.hzk@bytedance.com>
Subject: mm/z3fold: remove unneeded spinlock in z3fold_alloc
Date: Sun, 4 Feb 2024 21:15:43 +0800

The spinlock in z3fold_alloc() is used to protect page->lru, but now it
was removed in commit e774a7bc7f0ad ("mm: zswap: remove page reclaim logic
from z3fold"), so remove the spinlock too.

Link: https://lkml.kernel.org/r/20240204131543.1469661-1-hezhongkun.hzk@bytedance.com
Signed-off-by: Zhongkun He <hezhongkun.hzk@bytedance.com>
Cc: Domenico Cerasuolo <cerasuolodomenico@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/z3fold.c |    2 --
 1 file changed, 2 deletions(-)

--- a/mm/z3fold.c~mm-z3fold-remove-unneeded-spinlock-in-z3fold_alloc
+++ a/mm/z3fold.c
@@ -1070,9 +1070,7 @@ found:
 	add_to_unbuddied(pool, zhdr);
 
 headless:
-	spin_lock(&pool->lock);
 	*handle = encode_handle(zhdr, bud);
-	spin_unlock(&pool->lock);
 	if (bud != HEADLESS)
 		z3fold_page_unlock(zhdr);
 
_

Patches currently in -mm which might be from hezhongkun.hzk@bytedance.com are

mm-z3fold-fix-the-comment-for-__encode_handle.patch


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

only message in thread, other threads:[~2024-02-21 22:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-21 22:24 [to-be-updated] mm-z3fold-remove-unneeded-spinlock-in-z3fold_alloc.patch removed from -mm tree Andrew Morton

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.