Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp1995363lfo; Sat, 28 May 2022 13:05:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE4ayHmyiWAujwQfPpD7/tvMe4IqXCVr/Dm/8BLrYGfD7Ql11dKb4YdYBhrTDch+JMsAhe X-Received: by 2002:a17:902:dad2:b0:162:46a:73ae with SMTP id q18-20020a170902dad200b00162046a73aemr38134213plx.168.1653768359460; Sat, 28 May 2022 13:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653768359; cv=none; d=google.com; s=arc-20160816; b=0G4XUMsIUv0tsKJG4AQtFPuPlaAN2dN/TmkeBYXsxnVaJHTEDAlVRAtGSdoehHtNXO DMOqljXfck6Az7tW90pBh7Y8APu+V7HQf0n1SN2Axji52VhA17EnlN4Kb/SFfvOrNzXM z8YZIRgxmob71I6ZuI/xw1e++HxM6vRezf95wSo/42b2jN8+8P0HchLKCLs1ZtSB+NVW u5aR0RqQRjmMVVeSraDqzw1E0rPMumtKI9VvqPpOy4TxyNNcTOuM4dCJmymQk03W+HVL 7JY17yjtrCN5mD/MrExt/9L1Rnheef57/CVb7XXna+NTTuOya4R4sv1YmEwDrC32u0i8 V7yQ== 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; bh=Di7XV4IGWF77tQvxoeiNfKzeIQMl+KEXZAhavQki9xI=; b=YDwFXWAP5DK4R1zgHF51tO+durLjA420kHXTKdF25nEXmSuQ4+LJQBqxiI9U32Yr4E yUldwbvhvjCzC5INFV2jImz0f3TTwoLN/sC726BAIHQjAIghOKIlYggfQAGIDfGOeq6I eUyEQN1zcck/kNsXsi33X74nJi/M0uSV+5FHMv7c+N8gBWQRhVGNgQsm6JBq8U8RZAas 0T0pd+QcsNF2MOQvQGK8T4fIvAjatFq2XJhnA1oEYCb15++Z4ENpchVcoejtE7u8VHzc 9K7kP9r0oJhgvCEGIeim21A2+YFVYTOV8jjUYimiCEiSZ3lJEOe/Mgh986i757tuiWJp QA4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=4PIrBTtS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j5-20020a170902da8500b001586f9a109fsi11320622plx.0.2022.05.28.13.05.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:05:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=4PIrBTtS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3BB4EE3F; Sat, 28 May 2022 12:21:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240208AbiEYLlf (ORCPT + 99 others); Wed, 25 May 2022 07:41:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237970AbiEYLld (ORCPT ); Wed, 25 May 2022 07:41:33 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F2D4A2047 for ; Wed, 25 May 2022 04:41:32 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id a17so2263342plb.4 for ; Wed, 25 May 2022 04:41:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Di7XV4IGWF77tQvxoeiNfKzeIQMl+KEXZAhavQki9xI=; b=4PIrBTtSY7gdXmJ5owF/C1/ZrJroXty20T94JZS01Q1mZd4fgW+U09Ylg34REtQHwg VvHo688nCXJo+Q7+koX9lz+0tbnGoEkPPGZ2AgZ66FiiIBz/6J2zuZ2o6ahZyYplwi5a ZpYwEegz5Et296T5u2GHEruAMZ0J0oFI2MrnGS/px1P5ZBQ3T4Fw9BIIQZ7ilJbngsZX RuccrSfBxgHlo3I+FuYajmX7kRE146DU7yk3DvUqdzSiPKw6IAB1msE3q4MepqWL+Drr HByjp0hRrmK7RyClGTppcHZFzyvg58pywiCu6oaOmRd1JgAsrEtQimpdgiRstKiuADI5 INkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Di7XV4IGWF77tQvxoeiNfKzeIQMl+KEXZAhavQki9xI=; b=RzHsXvzQ1GylWk2ZE7nlipDMGu4ItJd5uUOiN7v87xi9k498zYtWF5GpjOTcMcaB2C ZWhghrzXEuq76yo+A9Ms2zS/mw1oVC5fK2HaRkGxShp3elUzBSql89goQHRJ5+ZLcV3q 8zEjGbjviz1kJQ7wGMgWOmGhs668PESYvKNAjOBtJumA7w14afdFc68VxDIA30CkfKyB SRwhAGEhHP40kDAI12Pbb/iBzdIX3wK0gbSUQ+oR+G2J+hMBbdYHfRJdTHFAEWoRr7DS XOd0YJP4sc35FdlTSBUVyny0ZFMYMGoAyW2F81gasdr3RkUDv97wWyFty2twhBdnL92L nTsw== X-Gm-Message-State: AOAM530QzFZNHW5wNSiZmjkgL6e8et1PrmQQ2wWpQedAhfFxBf/+2JFg +PCP7h+z1/Jo+b/io9XOrPkKrg== X-Received: by 2002:a17:902:ec85:b0:161:cff5:17c8 with SMTP id x5-20020a170902ec8500b00161cff517c8mr32385262plg.62.1653478891804; Wed, 25 May 2022 04:41:31 -0700 (PDT) Received: from localhost ([2408:8207:18da:2310:c40f:7b5:4fa8:df3f]) by smtp.gmail.com with ESMTPSA id i4-20020aa787c4000000b00518d06efbc8sm3393965pfo.98.2022.05.25.04.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 04:41:31 -0700 (PDT) Date: Wed, 25 May 2022 19:41:26 +0800 From: Muchun Song To: Roman Gushchin Cc: hannes@cmpxchg.org, mhocko@kernel.org, shakeelb@google.com, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, duanxiongchun@bytedance.com, longman@redhat.com Subject: Re: [PATCH v4 04/11] mm: vmscan: rework move_pages_to_lru() Message-ID: References: <20220524060551.80037-1-songmuchun@bytedance.com> <20220524060551.80037-5-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, May 24, 2022 at 07:43:03PM -0700, Roman Gushchin wrote: > On Tue, May 24, 2022 at 02:05:44PM +0800, Muchun Song wrote: > > In the later patch, we will reparent the LRU pages. The pages moved to > > appropriate LRU list can be reparented during the process of the > > move_pages_to_lru(). So holding a lruvec lock by the caller is wrong, we > > should use the more general interface of folio_lruvec_relock_irq() to > > acquire the correct lruvec lock. > > > > Signed-off-by: Muchun Song > > With changes asked by Johannes : > > Acked-by: Roman Gushchin > Thanks Roman.