Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1376954pxy; Sun, 15 Aug 2021 19:23:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQb08AIHIQoeAfLyKfe6sQ/z/h8+NcXOj9Y73ZCqQZZhnG2diEUW/BmPxvBXoByVe91GY/ X-Received: by 2002:a05:6402:278b:: with SMTP id b11mr15752638ede.339.1629080626169; Sun, 15 Aug 2021 19:23:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629080626; cv=none; d=google.com; s=arc-20160816; b=ysaLorv+AgB0UtWyZDPC02hhA7PCbAegpl4tPZ7al/rQTdnRZQ8QcrLYbEKwt8kjYA MA8osLjIhOIRXcJRKHfHF0pBhf9E6pudUyezrdhJE74Ur6a8Qj5G7C4klXmhk9znoHiM N9RKX9P4jQjlluYb5wTtxm1oQG34g4Jm4xffv2n4a2/oPHsATMqMFZzAOdR/EnNRZsCh M2UO+UJj7oAX6GJI9ImwxQTXNv1louF56N9sGTivYYKU1JIdyPFCGd4zIDhAMq1aP6en CGHzeWumv13glEA86EGYUcRNflqw65qYUY5zAV7j6IHv7zms80uxlo2KaIdtDd70A8q7 UB9g== 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=8wNz7LcT9xNxK0y/fhLt58PK8+R22+7lIZQyn3Pih+A=; b=y3AW3HQwNfD46F8uGPrDV6XHNshbxPu7Qv5w7SOfim3lyocCnAKBKVS6sgo98tTsDB sKQT0TCvUctPchb+igJNUc4OUyigAKHa4/3vJ9rYgFeqye76puWrj05Gvfu6J3st4fw2 G1SYYcjqV72YCaShvBUXago16aVDWrZINLNcuC83mjr8NPqCowxOKLDjAbcsIu6NbPWc wObfIzDa2EQa5lR8Rg3rz4Oc0sy6n5pSYxos/aqfDhucoounWjApzeNSXNWveGQEmIWW 9vrwhIOdmfajmqRC6S7RuORY9f0DS5r0tRAzBlu1mW209hHsQkUhFGGMZCWxqzWvEA78 YkTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fGbOje6i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si10169014edu.126.2021.08.15.19.23.23; Sun, 15 Aug 2021 19:23:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fGbOje6i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231157AbhHPCWJ (ORCPT + 99 others); Sun, 15 Aug 2021 22:22:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbhHPCWI (ORCPT ); Sun, 15 Aug 2021 22:22:08 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A542FC061764; Sun, 15 Aug 2021 19:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=8wNz7LcT9xNxK0y/fhLt58PK8+R22+7lIZQyn3Pih+A=; b=fGbOje6iv2gBRt1NHwxNDaxkq6 bR34Tb/IF3vQKwky/8bwQdw/c9IBHmo8ElPm1+vBgVs3W5rWFsasstgDzSNrCoOol3FrzRyaKr/g3 ECms22cwdWo7taquCtWt7b6ORbhWnZaQ/vJSz7euXjILEYqO2gl4a/KRJIyrBliJCXHJleF1jZkg3 n49k3sOoFT9dSNmrNSr8o6YdKKejvpJukuU4tVUKMiWTRFJ91WsxGf/7v/l699aT9Pow5fRYuSUwe 2O1I+8O5xQvvEJFph0AXtsftkt0TdlxN773hB/taWKibG28guGZmTSxBcNWwCyOmWidgggVcKl/iy DZml9eJA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mFSFd-000rxS-77; Mon, 16 Aug 2021 02:21:27 +0000 Date: Mon, 16 Aug 2021 03:21:21 +0100 From: Matthew Wilcox To: David Howells Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v14 082/138] mm/lru: Convert __pagevec_lru_add_fn to take a folio Message-ID: References: <20210715033704.692967-83-willy@infradead.org> <20210715033704.692967-1-willy@infradead.org> <1814231.1628631867@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1814231.1628631867@warthog.procyon.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 10:44:27PM +0100, David Howells wrote: > Matthew Wilcox (Oracle) wrote: > > > * looking at the same page) and the evictable page will be stranded > > * in an unevictable LRU. > > Does that need converting to say 'folio'? Changed the parapgraph (passed it through fmt too) * if '#1' does not observe setting of PG_lru by '#0' and * fails isolation, the explicit barrier will make sure that * folio_evictable check will put the folio on the correct * LRU. Without smp_mb(), folio_set_lru() can be reordered * after folio_test_mlocked() check and can make '#1' fail the * isolation of the folio whose mlocked bit is cleared (#0 is * also looking at the same folio) and the evictable folio will * be stranded on an unevictable LRU. > Other than that: > > Reviewed-by: David Howells >