On 2024/6/3 17:24, Kefeng Wang wrote: > There is a memory_failure_queue() call after copy_mc_[user]_highpage(), > see callers, eg, CoW/KSM page copy, it is used to mark the source page > as h/w poisoned and unmap it from other tasks, and the upcomming poison > recover from migrate folio will do the similar thing, so let's move the > memory_failure_queue() into the copy_mc_[user]_highpage() instead of > adding it into each user, this should also enhance the handling of > poisoned page in khugepaged. > > Signed-off-by: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx> LGTM. Thanks. Reviewed-by: Miaohe Lin <linmiaohe@xxxxxxxxxx> Thanks. .