Hello,From 740148005f1333150ee1e119ed8a34454abb7c1d Mon Sep 17 00:00:00 2001 From: Aili Yao <yaoaili@xxxxxxxxxxxx> Date: Fri, 15 Jan 2021 14:56:06 +0800 Subject: [PATCH] mm,hwpoison: non-current task should be checked early_kill for force_early Other process may also care the error info with the early-kill flag set. when force_early is set, and if tsk is not current, leave it to the early-kill flag check. Signed-off-by: Aili Yao <yaoaili@xxxxxxxxxxxx> --- mm/memory-failure.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 5a38e9eade94..5e9e591c0929 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -457,8 +457,6 @@ static struct task_struct *task_early_kill(struct task_struct *tsk, */ if (tsk->mm == current->mm) return current; - else - return NULL; } return find_early_kill_thread(tsk); } -- 2.25.1 -- Best Regards! Aili Yao