]> 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>
Fri, 26 Aug 2022 05:03:06 +0000 (22:03 -0700)
commita5898d182a92f79a3118fb5a9cae6179a51b71d1
tree91a284d98c1a3126a819806aa89a02072639f47a
parent56d93ca6da59015b3401a75cfc78aa2b866aa81e
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