From patchwork Fri Jan 15 07:55:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?eWFvYWlsaSBb5LmI54ix5YipXQ==?= X-Patchwork-Id: 12021799 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA13AC433E9 for ; Fri, 15 Jan 2021 08:03:10 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 84AD523447 for ; Fri, 15 Jan 2021 08:03:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 84AD523447 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kingsoft.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8B6738D0139; Fri, 15 Jan 2021 03:03:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 866038D0023; Fri, 15 Jan 2021 03:03:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 77CD38D0139; Fri, 15 Jan 2021 03:03:08 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0039.hostedemail.com [216.40.44.39]) by kanga.kvack.org (Postfix) with ESMTP id 5D8118D0023 for ; Fri, 15 Jan 2021 03:03:08 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 23EA2824556B for ; Fri, 15 Jan 2021 08:03:08 +0000 (UTC) X-FDA: 77707268856.24.pies70_27155282752d Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin24.hostedemail.com (Postfix) with ESMTP id 19DBF1A4A5 for ; Fri, 15 Jan 2021 07:55:22 +0000 (UTC) X-HE-Tag: pies70_27155282752d X-Filterd-Recvd-Size: 3313 Received: from mail.kingsoft.com (unknown [114.255.44.146]) by imf23.hostedemail.com (Postfix) with ESMTP for ; Fri, 15 Jan 2021 07:55:13 +0000 (UTC) X-AuditID: 0a580155-713ff700000550c6-45-600144909f10 Received: from mail.kingsoft.com (localhost [10.88.1.32]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.kingsoft.com (SMG-2-NODE-85) with SMTP id 95.11.20678.09441006; Fri, 15 Jan 2021 15:30:24 +0800 (HKT) Received: from aili-OptiPlex-7020 (172.16.253.254) by KSBJMAIL2.kingsoft.cn (10.88.1.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Fri, 15 Jan 2021 15:55:07 +0800 Date: Fri, 15 Jan 2021 15:55:06 +0800 From: Aili Yao To: CC: , Subject: [PATCH] mm,hwpoison: non-current task should be checked early_kill for force_early Message-ID: <20210115155506.2d59fe83.yaoaili@kingsoft.com> Organization: Kingsoft X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Originating-IP: [172.16.253.254] X-ClientProxiedBy: KSBJMAIL1.kingsoft.cn (10.88.1.31) To KSBJMAIL2.kingsoft.cn (10.88.1.32) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrILMWRmVeSWpSXmKPExsXCFcGooDvBhTHB4PIiPYt7a/6zWlxsPMDo wOSx6dMkdo8XVzeyBDBFcdmkpOZklqUW6dslcGX8P9fGXHCMvaLxyUu2BsZeti5GTg4JAROJ n6tvsXcxcnEICUxnkjh/t4cNwnnBKNHz4hQTSBWLgKrExgt9YDYbkL3r3ixWEFtEQFai/dEl 5i5GDg5mASOJ3itgYWGBWIkTa3aDlfMKWEnsfL+REaSEX0BM4lWDMcRee4nnf88yQ5QISpyc +YQFxGYW0JE4seoYM4QtL7H97RwwW0hAUeLwkl/sEL1KEke6Z0DdHyuxbN4r1gmMgrOQjJqF ZNQsJKMWMDKvYmQpzk032sQICcXQHYwzmj7qHWJk4mA8xCjBwawkwpuvzJAgxJuSWFmVWpQf X1Sak1p8iFGag0VJnHfu5z/xQgLpiSWp2ampBalFMFkmDk6pBiZzee6+y6dqPrVfXvn2848F 7J+3Wn4/raO1oXnH4+q27mS1h3WXypbYvfu44ctZr0BnqTKTxIeHnmtt/t/AcEj/1yLmRn7e 93/m7hNOuco84eWFbfH3nTuN79qkfPA6Pe+EsUQ+e+CZ2fdML9Wr79E4y1tlM8/Y7RDTpiWF f/bvvyhhFurd7vSvp0VT0P9886oqviN/LuaEsPDuUmbf5fJg1kolkT+q/5vX9/psCb+i9rzA +5PJbpbG20d+5Qls3hFz037mHaaUt8fdrgm/DS72FTIQSU01VMvlPf0xL2quU2iKztYtW1yO GmwznmZ54fqn49cUmvcybf751WFXfWqD3o4UKV9DjVC9eqtF518rsRRnJBpqMRcVJwIAO+Hf l7QCAAA= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000344, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hello,From 740148005f1333150ee1e119ed8a34454abb7c1d Mon Sep 17 00:00:00 2001 From: Aili Yao 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 --- 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); }