]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm, hwpoison: kill procs if unmap fails
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 18 Aug 2022 13:00:15 +0000 (21:00 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 22 Aug 2022 22:58:16 +0000 (15:58 -0700)
commit18552c37d938f191849f9aface74e3e24fc63d53
tree63af432d4e3241fdd0ebf83612fd6e613cc4a018
parent07f858dcdf8395a999023a5eebfa629c10943673
mm, hwpoison: kill procs if unmap fails

If try_to_unmap() fails, the hwpoisoned page still resides in the address
space of some processes.  We should kill these processes or the hwpoisoned
page might be consumed later.  collect_procs() is always called to collect
relevant processes now so they can be killed later if unmap fails.

Link: https://lkml.kernel.org/r/20220818130016.45313-6-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c