linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/migrate: fix pmd_migration_entry_wait() (merge issue in linux-next)
@ 2021-12-16  8:38 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2021-12-16  8:38 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-mm, Matthew Wilcox

The "ptl = pmd_lock(mm, pmd);" line was accidentally deleted in the
linux-next merge for next-20211214.

Fixes: fd93c9fe58cc ("Merge branch 'akpm-current/current'")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
 mm/migrate.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mm/migrate.c b/mm/migrate.c
index 8d93dfb0b9e1..c9296d63878d 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -339,6 +339,8 @@ void pmd_migration_entry_wait(struct mm_struct *mm, pmd_t *pmd)
 {
 	spinlock_t *ptl;
 	struct folio *folio;
+
+	ptl = pmd_lock(mm, pmd);
 	if (!is_pmd_migration_entry(*pmd))
 		goto unlock;
 	folio = page_folio(pfn_swap_entry_to_page(pmd_to_swp_entry(*pmd)));
-- 
2.20.1



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

only message in thread, other threads:[~2021-12-16  8:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-16  8:38 [PATCH] mm/migrate: fix pmd_migration_entry_wait() (merge issue in linux-next) Dan Carpenter

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).