Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3262153imw; Mon, 11 Jul 2022 05:25:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sw441LxbmNucFIe9RGv6E8ZGJM8gRldniIn6/hH1FhVMTrDq4eLhtMbACuenSJVp6oyAy3 X-Received: by 2002:a62:fb0c:0:b0:52a:b71d:5c6b with SMTP id x12-20020a62fb0c000000b0052ab71d5c6bmr14444037pfm.34.1657542345340; Mon, 11 Jul 2022 05:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657542345; cv=none; d=google.com; s=arc-20160816; b=cctCpcCCdh8SSESVdrgJA/GX8osVEzv5/vaN9dykjGNn3Cqg1nk30PAmok2uNPPhQn AFh0Bl311+pJSahsS2P7v7X/xSiwUu0szbKSrZvVcwVX80uCciCfMmQMe4TtnfruCdj0 mDmOKh7jiH7FiNwqZsmtna3vu2CWeI0x3HQAlF/PqN9/twFisx1z9xx876t9Z11N1B49 ZdwouKOAb0nzpNX3PBvZjkG/1Ib2k5g+B9Qm7vJghX9YoP3G2jrYNwkdAQBC4+bpB6zf cXsR7PTthiH1pwoh1ee51veHZqEeBfo9g0ni+qEXnZJfKam7+oSRxeKaNSvTuSeooTov H5VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=RJTrqX4wTRC4bsbLa+oGGurpnRSIqFoGGm8rRNepF1U=; b=WEYKCK8gXekZpKv1LDOTqBbKEC520alTWUYsVsQMLwvvaYtU+Qbf+FC/wlKnHRPUmn hKuU26DXS5k/aIA9/CpYn0QY5drA9XX9W5nFmO6YJkHLvRhYa6JUDweAm8Km6nPa9HmA vwJb9ws5KZwqpCYgbzi+Yy1IckEbfrRk3Tz99O0mM5k1CgUo4e72sHUX+PhA2FJWqcQ0 UoDu/ct84EOopo84HMYR1FeAspM3ZWruNxAPZvVRnHZSayI+BBvLocvYGt3LFalPw5Ry MwNzde8xN+L767H9a9RpsxBm8WVt3T4SA83L2EmqMTorgfpbJV8+ILNCSgkbZ0j5oTiS zDKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=zWV2YtKM; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=2VOaoIIw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020a625304000000b0050d3e4009easi9226331pfb.125.2022.07.11.05.25.33; Mon, 11 Jul 2022 05:25:45 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=zWV2YtKM; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=2VOaoIIw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230309AbiGKMNI (ORCPT + 99 others); Mon, 11 Jul 2022 08:13:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbiGKMNH (ORCPT ); Mon, 11 Jul 2022 08:13:07 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0CF44A833 for ; Mon, 11 Jul 2022 05:13:06 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A1A6A202F3; Mon, 11 Jul 2022 12:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1657541585; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RJTrqX4wTRC4bsbLa+oGGurpnRSIqFoGGm8rRNepF1U=; b=zWV2YtKM8u0yyeLAWJTZzMxHn40zWPKElXCwuTkoPuYgiCoFhPwZhsyCItkYFa7N/4Cwgb eorXLQtF4Vfng6IZvAGrd7zPPaxKUbLsRbnoT4m0SCJ8AYWFhBT8DYSBEwI+D5n6Qlb4s6 VY2tORPRBMXnduLHG9SGzQXTwh4ic8Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1657541585; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RJTrqX4wTRC4bsbLa+oGGurpnRSIqFoGGm8rRNepF1U=; b=2VOaoIIwZYq3AABcC05h0mvfyzwswoQ1gsj93jIqbTHuPSZhO+OaM4FCIhJKU/5NyaGqcV yR1PRBzv5MpRXxDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 747B613524; Mon, 11 Jul 2022 12:13:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id BOhMG9ETzGIOCwAAMHmgww (envelope-from ); Mon, 11 Jul 2022 12:13:05 +0000 Date: Mon, 11 Jul 2022 14:13:04 +0200 From: Oscar Salvador To: Huang Ying Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Baolin Wang , Zi Yan , Yang Shi Subject: Re: [PATCH -V2 4/7] migrate_pages(): fix failure counting for THP subpages retrying Message-ID: References: <20220711084948.274787-1-ying.huang@intel.com> <20220711084948.274787-5-ying.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220711084948.274787-5-ying.huang@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Mon, Jul 11, 2022 at 04:49:45PM +0800, Huang Ying wrote: > If THP is failed to be migrated for -ENOSYS and -ENOMEM, the THP will > be split into thp_split_pages, and after other pages are migrated, > pages in thp_split_pages will be migrated with no_subpage_counting == > true, because its failure have been counted already. If some pages in > thp_split_pages are retried during migration, we should not count > their failure if no_subpage_counting == true too. This is done this > patch to fix the failure counting for THP subpages retrying. > > Signed-off-by: "Huang, Ying" > Fixes: 5984fabb6e82 ("mm: move_pages: report the number of non-attempted pages") > Reviewed-by: Baolin Wang > Cc: Zi Yan > Cc: Yang Shi Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE Labs