From: Ma Wupeng <mawupeng1@xxxxxxxxxx> Fix two bugs during migrate folio if folio is poisoned. Changelog since v2: - re-order patches - fix compile errors - modify patch #2 as suggested 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 mm: memory-hotplug: check folio ref count first in do_migrate_range hwpoison, memory_hotplug: lock folio before unmap hwpoisoned folio mm/internal.h | 5 ++-- mm/memory-failure.c | 61 +++++++++++++++++++++++---------------------- mm/memory_hotplug.c | 26 +++++++++---------- 3 files changed, 46 insertions(+), 46 deletions(-) -- 2.43.0