From: Ma Wupeng <mawupeng1@xxxxxxxxxx> Fix two bugs during migrate folio if folio is poisoned. Changelog since v1: - update ttu flag inside unmap_poisoned_folio. - check folio ref count before unmap HWpoisoned folio. Ma Wupeng (3): mm: memory-failure: update ttu flag inside unmap_poisoned_folio hwpoison, memory_hotplug: lock folio before unmap hwpoisoned folio mm: memory-hotplug: check folio ref count first in do_migrate_rang mm/internal.h | 5 ++-- mm/memory-failure.c | 61 +++++++++++++++++++++++---------------------- mm/memory_hotplug.c | 22 ++++++++-------- 3 files changed, 44 insertions(+), 44 deletions(-) -- 2.43.0