All of lore.kernel.org
 help / color / mirror / Atom feed
* + mm-shmem-swap-fix-softlockup-with-mthp-swapin-v3.patch added to mm-hotfixes-unstable branch
@ 2025-06-10 19:33 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-06-10 19:33 UTC (permalink / raw)
  To: mm-commits, usamaarif642, shikemeng, nphamcs, hughd, chrisl, bhe,
	baolin.wang, baohua, kasong, akpm


The patch titled
     Subject: mm-shmem-swap-fix-softlockup-with-mthp-swapin-v3
has been added to the -mm mm-hotfixes-unstable branch.  Its filename is
     mm-shmem-swap-fix-softlockup-with-mthp-swapin-v3.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-shmem-swap-fix-softlockup-with-mthp-swapin-v3.patch

This patch will later appear in the mm-hotfixes-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

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/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
From: Kairui Song <kasong@tencent.com>
Subject: mm-shmem-swap-fix-softlockup-with-mthp-swapin-v3
Date: Wed, 11 Jun 2025 02:16:45 +0800

add comment

Link: https://lkml.kernel.org/r/20250610181645.45922-1-ryncsn@gmail.com
Fixes: 1dd44c0af4fa1 ("mm: shmem: skip swapcache for swapin of synchronous swap device")
Signed-off-by: Kairui Song <kasong@tencent.com>
Reviewed-by: Barry Song <baohua@kernel.org>
Acked-by: Nhat Pham <nphamcs@gmail.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Chris Li <chrisl@kernel.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Kemeng Shi <shikemeng@huaweicloud.com>
Cc: Usama Arif <usamaarif642@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/shmem.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/mm/shmem.c~mm-shmem-swap-fix-softlockup-with-mthp-swapin-v3
+++ a/mm/shmem.c
@@ -2273,6 +2273,8 @@ static int shmem_swapin_folio(struct ino
 		 * If uffd is active for the vma, we need per-page fault
 		 * fidelity to maintain the uffd semantics, then fallback
 		 * to swapin order-0 folio, as well as for zswap case.
+		 * Any existing sub folio in the swap cache also blocks
+		 * mTHP swapin.
 		 */
 		if (order > 0 && ((vma && unlikely(userfaultfd_armed(vma))) ||
 				  !zswap_never_enabled() ||
_

Patches currently in -mm which might be from kasong@tencent.com are

mm-userfaultfd-fix-race-of-userfaultfd_move-and-swap-cache.patch
mm-shmem-swap-fix-softlockup-with-mthp-swapin.patch
mm-shmem-swap-fix-softlockup-with-mthp-swapin-v3.patch
mm-list_lru-refactor-the-locking-code.patch


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

only message in thread, other threads:[~2025-06-10 19:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 19:33 + mm-shmem-swap-fix-softlockup-with-mthp-swapin-v3.patch added to mm-hotfixes-unstable branch 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.