From patchwork Wed Sep 30 02:06:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 11807665 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 489F4112C for ; Wed, 30 Sep 2020 02:07:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E60B520C09 for ; Wed, 30 Sep 2020 02:07:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E60B520C09 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E5B5C6B005C; Tue, 29 Sep 2020 22:07:16 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id DE4596B005D; Tue, 29 Sep 2020 22:07:16 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CFA918E0001; Tue, 29 Sep 2020 22:07:16 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0216.hostedemail.com [216.40.44.216]) by kanga.kvack.org (Postfix) with ESMTP id B0B6B6B005C for ; Tue, 29 Sep 2020 22:07:16 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 76C2A180B7E0D for ; Wed, 30 Sep 2020 02:07:16 +0000 (UTC) X-FDA: 77318090472.11.point51_200b8972718f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin11.hostedemail.com (Postfix) with ESMTP id 5692E180F8B81 for ; Wed, 30 Sep 2020 02:07:16 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,wangkefeng.wang@huawei.com,,RULES_HIT:30012:30054:30070,0,RBL:45.249.212.35:@huawei.com:.lbl8.mailshell.net-62.18.2.100 64.95.201.95;04yrk8qnswh13mmw3mjhunp3owwqwoc8tbuwpcoz7ksmiksjtsh3sh9ed8adzgr.w1q4hi85tbod5bbj3xi8b6w8b15tyfez97tno5pkjnytsi7j9rhrnistefskt9s.6-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:26,LUA_SUMMARY:none X-HE-Tag: point51_200b8972718f X-Filterd-Recvd-Size: 1874 Received: from huawei.com (szxga07-in.huawei.com [45.249.212.35]) by imf25.hostedemail.com (Postfix) with ESMTP for ; Wed, 30 Sep 2020 02:07:15 +0000 (UTC) Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4AD38A032FA2821EFCA6; Wed, 30 Sep 2020 10:07:12 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Wed, 30 Sep 2020 10:07:04 +0800 From: Kefeng Wang To: Andrew Morton , CC: , Kefeng Wang , Chunxin Zang Subject: [PATCH -next] mm/vmscan: Drop duplicated code in drop_slab_node Date: Wed, 30 Sep 2020 10:06:59 +0800 Message-ID: <20200930020659.139283-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The following patches fix same issue and both add fatal signal check in drop_slab_node, kill a duplicated check. "mm/vmscan: add a fatal signals check in drop_slab_node" "mm/vmscan: fix infinite loop in drop_slab_node" Cc: Chunxin Zang Signed-off-by: Kefeng Wang --- mm/vmscan.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index eae57d092931..980155e257bf 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -699,9 +699,6 @@ void drop_slab_node(int nid) do { struct mem_cgroup *memcg = NULL; - if (fatal_signal_pending(current)) - return; - if (fatal_signal_pending(current)) return;