]> Git Repo - linux.git/commit
mm/migrate.c: remove MIGRATE_PFN_LOCKED
authorAlistair Popple <[email protected]>
Thu, 11 Nov 2021 04:32:40 +0000 (20:32 -0800)
committerLinus Torvalds <[email protected]>
Thu, 11 Nov 2021 17:34:35 +0000 (09:34 -0800)
commitab09243aa95a72bac5c71e852773de34116f8d0f
tree825f51109c310ac95b1bf5278394badbec8fd6dc
parent0ef024621417fa3fcdeb2c3320f90ee34e18a5d9
mm/migrate.c: remove MIGRATE_PFN_LOCKED

MIGRATE_PFN_LOCKED is used to indicate to migrate_vma_prepare() that a
source page was already locked during migrate_vma_collect().  If it
wasn't then the a second attempt is made to lock the page.  However if
the first attempt failed it's unlikely a second attempt will succeed,
and the retry adds complexity.  So clean this up by removing the retry
and MIGRATE_PFN_LOCKED flag.

Destination pages are also meant to have the MIGRATE_PFN_LOCKED flag
set, but nothing actually checks that.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Alistair Popple <[email protected]>
Reviewed-by: Ralph Campbell <[email protected]>
Acked-by: Felix Kuehling <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Jerome Glisse <[email protected]>
Cc: John Hubbard <[email protected]>
Cc: Zi Yan <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Ben Skeggs <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/vm/hmm.rst
arch/powerpc/kvm/book3s_hv_uvmem.c
drivers/gpu/drm/amd/amdkfd/kfd_migrate.c
drivers/gpu/drm/nouveau/nouveau_dmem.c
include/linux/migrate.h
lib/test_hmm.c
mm/migrate.c
This page took 0.062882 seconds and 4 git commands to generate.