Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3907973imw; Mon, 11 Jul 2022 19:29:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sgI+FB0iElAO3w4dkDPZy7IdELSqa+bR2esroUrYHfCdDJecj2r4CKNEix1rDjITVgAwT6 X-Received: by 2002:a17:902:d4ce:b0:16c:3d9a:e25d with SMTP id o14-20020a170902d4ce00b0016c3d9ae25dmr11927004plg.15.1657592947375; Mon, 11 Jul 2022 19:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657592947; cv=none; d=google.com; s=arc-20160816; b=IlOFpKW3C1fjtRFahW/HU1giHPG9YCeWDfB80wMSSt81AtFX/djPDn6T9ebs9uKzn2 T8zkDlRDFHribqDG0mMBU0ahOcp87Gn53g21sjDFxMM+8d8tC0MoEtb1jlTg5rrY5Zy1 XromVVJTMszYbYtz6qf4X+B8I2Bevt0qYF3qz9nlwCs5JogtkZr795wPwcC8sbdH/wik Bv087N74E5sNJoAcm13Wo8k5D71bnLIWyD5vLGQexgQQmIV39Q1MIIL5WJnLd7ELMZ/m pRfXAj3N2xwIVTVaWNaFSaBrwPUdYP5MabkSLvCBlsJgcQxOWHe/OpNOnJVqD70kccui 6iIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:cc :references:to:subject; bh=qpqdCW0O8EQczxLgQRrfoTTT+iDg2MqsdcWqrc+7gA4=; b=K/uNoufTrWXHoe9zdqqjmz7TP4alrj/tO9ICCl8pm8B5mEePYNlfeynn06ctGR/eSU fn1AmUms7ujx6C/rX2MilWJzufr6fXytFpvIlRmlYCzKGo2RS1sxxOCdsRNqRH6Qzkbo zPcV2aiU9dVnRd+g2n04s70uyeH/r3R7viMWmSIyXWz9EYEOOZsZrUWrqH7YOS+YE9WH 50REtCv5GqlC72vEtC3XbQpcU2dFZmpoeJ8UBQqYIu+FKP8vQ3c4MbaMQWqlicUgmSSm lPbba6yKhfYwUb1QFQjUxrKwOF70E3k9V196cnh4TDb8cVTqHY6c1rWmHzPrKmvMy7i9 rOgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a170902d58700b0016c0ae33e3esi11366445plh.347.2022.07.11.19.28.54; Mon, 11 Jul 2022 19:29:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229935AbiGLC1C (ORCPT + 99 others); Mon, 11 Jul 2022 22:27:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230334AbiGLC04 (ORCPT ); Mon, 11 Jul 2022 22:26:56 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB8578E1EF for ; Mon, 11 Jul 2022 19:26:49 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Lhl2y4VCbzlVtk; Tue, 12 Jul 2022 10:25:14 +0800 (CST) Received: from [10.174.177.76] (10.174.177.76) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 12 Jul 2022 10:26:47 +0800 Subject: Re: [PATCH] mm/compaction: fix set skip in fast_find_migrateblock To: Zhou Chuyi , References: <20220711123213.66068-1-zhouchuyi@bytedance.com> CC: Andrew Morton , linux-kernel From: Miaohe Lin Message-ID: <8af11329-93d4-3bbd-fe4c-343663c00a1b@huawei.com> Date: Tue, 12 Jul 2022 10:26:47 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20220711123213.66068-1-zhouchuyi@bytedance.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.76] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Cc Andrew and linux-kernel email list. On 2022/7/11 20:32, Zhou Chuyi wrote: > From: zhouchuyi > > When we successfully find a pageblock in fast_find_migrateblock(), the block will be set skip-flag through set_pageblock_skip(). However, when entering isolate_migratepages_block(), the whole pageblock will be skipped due to the branch 'if (!valid_page && IS_ALIGNED(low_pfn, pageblock_nr_pages))'. Eventually we will goto isolate_abort and isolate nothing. > Signed-off-by: zhouchuyi It seems we should tweak the commit log to satisfy the checkpatch.pl first. > --- > mm/compaction.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/mm/compaction.c b/mm/compaction.c > index 1f89b969c..a1a2b50c8 100644 > --- a/mm/compaction.c > +++ b/mm/compaction.c > @@ -1852,7 +1852,6 @@ static unsigned long fast_find_migrateblock(struct compact_control *cc) > pfn = cc->zone->zone_start_pfn; > cc->fast_search_fail = 0; > found_block = true; > - set_pageblock_skip(freepage); This looks like a real problem. Should we add a Fixes tag here? What's the runtime effect of it? Thanks for your patch! > break; > } > } >