Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3929447ioo; Wed, 25 May 2022 10:51:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzRJxB2w6C0x3hf8KkEOivJIAY5FzMVGOFPIaVP1uQjYbMhVQb6lCT1zJSsDPowZs6Adz0 X-Received: by 2002:a17:90b:3e8a:b0:1e0:4f19:c63b with SMTP id rj10-20020a17090b3e8a00b001e04f19c63bmr11663372pjb.237.1653501084479; Wed, 25 May 2022 10:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653501084; cv=none; d=google.com; s=arc-20160816; b=KdAD4BbukqD0JVAi7VyFV3HptYycTbZ/PEw2D69DQ2Yzn1jCXSZINHP5UbOawptXKt PE0N3tCXsl4rSvHzFee+H2fQKo4eglrqY52OP0E9+SQpQpsLq+3mOKlaZyPK2LSSVNe3 ob7RsWYH38DoFdMfksmwiO6I9ZMj26Z5RoHIGMXnERgu7ZBiLUuF5zDFjnspWwXmC7zD hhfeHsykVF4FLj3YteL6wIdIqSWbIkX1N+B4K2aC7lQcIrS6pZmD//JZttKt1EXpEB2H /NZgzbNkZCDhB/V89YqvYCDjCMxpRAeNMSvBoEMBdwhLqWLrFNII1ZE8FmwGn/A0aW6X 5i2Q== 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:dkim-signature:date; bh=IzX85D9y8VZc2IadwWQIPquJuvjI/THj3QAzh+7YEVk=; b=tP6xtNXUdQIK7EfxLnz13pDy+OwcFleE9CMKWJ4qGCfzjsT61ggtMN+CNfo0v5FOPJ s1JR1Ak3+0uuOZbZXm60+vLYhLu7QrmFOK0DO5fLPkOTZ0vSShyjy2NlURR1ygnv/VT2 MWr0oTenWElV6fvkWcP2AgYneriqgihL+teFpo+luz7nhxHIO0Jq47Zk5LvNBPO663Yz FRGja4kLItgvbqz9jzJmYxdJNpZlMKL69HbZvxi5oL6DAszXwaa2qTsN6xbblrnwGTN0 er2IGB9u75FXRQB5Be4y94+wySpHw7QL8M5kXb9Cb+tqPsx9/PYyjNoNyXaovv6/souH wfIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=pY4AWZ78; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a63a509000000b003f25729acd4si18857182pgf.555.2022.05.25.10.51.12; Wed, 25 May 2022 10:51:24 -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=@linux.dev header.s=key1 header.b=pY4AWZ78; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243655AbiEYCnM (ORCPT + 99 others); Tue, 24 May 2022 22:43:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234123AbiEYCnL (ORCPT ); Tue, 24 May 2022 22:43:11 -0400 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B66DD6FD34; Tue, 24 May 2022 19:43:10 -0700 (PDT) Date: Tue, 24 May 2022 19:43:03 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1653446588; h=from:from:reply-to:subject:subject: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=IzX85D9y8VZc2IadwWQIPquJuvjI/THj3QAzh+7YEVk=; b=pY4AWZ78/UZn4TWf6HOYv4Shw6u6k6wcAApxRzoORivOvLOkoMivA3GRfykLZzPgLh8DwO SmjLNsvpvdP7jyPL3PYNt023IaGaHGc6ax0hkxQc26RMILhroY9sglbhEINVzQae2V70Sm bInt/T6+8/yddwoRi0/SL0OHagyEE1A= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Muchun Song 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: <20220524060551.80037-5-songmuchun@bytedance.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 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!