mm-migrate_device-remove-dead-migration-entry-check-in-migrate_vma_collect_huge_pmd.patch removed from -mm tree
The quilt patch titled
Subject: mm/migrate_device: remove dead migration entry check in migrate_vma_collect_huge_pmd()
has been removed from the -mm tree. Its filename was
mm-migrate_device-remove-dead-migration-entry-check-in-migrate_vma_collect_huge_pmd.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Davidlohr Bueso <[email protected]>
Subject: mm/migrate_device: remove dead migration entry check in migrate_vma_collect_huge_pmd()
Date: Wed, 11 Feb 2026 17:46:11 -0800
The softleaf_is_migration() check is unreachable as entries that are not device_private are filtered out. Similarly, the PTE-level equivalent in migrate_vma_collect_pmd() skips migration entries.
This dead branch also contained a double spin_unlock(ptl) bug.
---
mm/migrate_device.c | 6 ------ 1 file changed, 6 deletions(-)
mm/migrate_device.c renamed from mm/migrate_device.c~mm-migrate_device-remove-dead-migration-entry-check-in-migrate_vma_collect_huge_pmd +0 -6
@@ -175,12 +175,6 @@ static int migrate_vma_collect_huge_pmd(return migrate_vma_collect_skip (start, end, walk); } -if (softleaf_is_migration (entry)) { -migration_entry_wait_on_locked (entry, ptl); -spin_unlock (ptl); -return -EAGAIN ; - } -if (softleaf_is_device_private_write (entry)) write =MIGRATE_PFN_WRITE ; }else {
_
Patches currently in -mm which might be from [email protected] are
Quoted 58 lines · Andrew Morton
The quilt patch titled
Subject:mm/migrate_device: remove dead migration entry check inmigrate_vma_collect_huge_pmd()
has been removed from the -mm tree. Its filename was
mm-migrate_device-remove-dead-migration-entry-check-in-migrate_vma_collect_huge_pmd.patchThis patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Davidlohr Bueso <[email protected]>
Subject:mm/migrate_device: remove dead migration entry check inmigrate_vma_collect_huge_pmd()
Date: Wed, 11 Feb 2026 17:46:11 -0800The
softleaf_is_migration()check is unreachable as entries that are notdevice_privateare filtered out. Similarly, the PTE-level equivalent inmigrate_vma_collect_pmd()skips migration entries.This dead branch also contained a double
spin_unlock(ptl)bug.Fixes a30b48bf1b244 ("mm/migrate_device: implement THP migration of zone device pages")Signed-off-by Davidlohr Bueso <[email protected]>Suggested-by Matthew Brost <[email protected]>Reviewed-by Alistair Popple <[email protected]>Acked-by Balbir Singh <[email protected]>Cc Byungchul Park <[email protected]>Cc Gregory Price <[email protected]>Cc Jason Gunthorpe <[email protected]>Cc John Hubbard <[email protected]>Cc Joshua Hahn <[email protected]>Cc Mathew Brost <[email protected]>Cc Rakie Kim <[email protected]>Cc Ying Huang <[email protected]>Cc Zi Yan <[email protected]>Cc Thomas Hellström <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
mm/migrate_device.c | 6 ------ 1 file changed, 6 deletions(-)mm/migrate_device.c renamed from mm/migrate_device.c~mm-migrate_device-remove-dead-migration-entry-check-in-migrate_vma_collect_huge_pmd +0
-6@@ -175,12 +175,6 @@ static int migrate_vma_collect_huge_pmd(return migrate_vma_collect_skip (start, end, walk); } -if (softleaf_is_migration (entry)) { -migration_entry_wait_on_locked (entry, ptl); -spin_unlock (ptl); -return -EAGAIN ; - } -if (softleaf_is_device_private_write (entry)) write =MIGRATE_PFN_WRITE ; }else {_
Quoted 1 line
Patches currently in -mm which might be from [email protected] are
Andrew, was this patch dropped by mistake?
Signature · 3 lines
Cheers, David
Quoted 17 lines · On Tue, 14 Apr 2026 12:05:37 +0200 "David Hildenbrand (Arm)"…
Quoted 17 lines
mm/migrate_device.c renamed from mm/migrate_device.c~mm-migrate_device-remove-dead-migration-entry-check-in-migrate_vma_collect_huge_pmd +0
-6@@ -175,12 +175,6 @@ static int migrate_vma_collect_huge_pmd(return migrate_vma_collect_skip (start, end, walk); } -if (softleaf_is_migration (entry)) { -migration_entry_wait_on_locked (entry, ptl); -spin_unlock (ptl); -return -EAGAIN ; - } -if (softleaf_is_device_private_write (entry)) write =MIGRATE_PFN_WRITE ; }else {_
Quoted 3 lines
Quoted 1 line
Patches currently in -mm which might be from [email protected] are
Andrew, was this patch dropped by mistake?
It might have been. What can happen is that I was told it was being taken into a different tree but then it wasn't, (which is why I usually hang onto things until Mark reports the duplicate). But I can't immediately find a thread about that.
I brought it back, thanks.