mbox series

[v2,0/3] mm: memory_failure: unmap poisoned filio during migrate properly

Message ID 20250116061657.227027-1-mawupeng1@huawei.com (mailing list archive)
Headers show
Series mm: memory_failure: unmap poisoned filio during migrate properly | expand

Message

Wupeng Ma Jan. 16, 2025, 6:16 a.m. UTC
From: Ma Wupeng <mawupeng1@huawei.com>

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