mm/memory-failure.c: rework the signaling logic in kill_proc
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 28 Feb 2022 23:01:08 +0000 (10:01 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Feb 2022 23:01:08 +0000 (10:01 +1100)
commite4ea5498fa275e32d2ee16eb1de7f67a875282bf
tree65bb2c4782cdd3fca4d98e20acfb21d047e929d0
parentdf12b4814afe1c34a1339aafd131d6b274f1e547
mm/memory-failure.c: rework the signaling logic in kill_proc

BUS_MCEERR_AR code is only sent when MF_ACTION_REQUIRED is set and the
target is current.  Rework the code to make this clear.

Link: https://lkml.kernel.org/r/20220218090118.1105-4-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>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/memory-failure.c