From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99DA7C4338F for ; Mon, 16 Aug 2021 02:21:44 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2EB3F600D4 for ; Mon, 16 Aug 2021 02:21:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2EB3F600D4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 322708D0001; Sun, 15 Aug 2021 22:21:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2D2B36B0072; Sun, 15 Aug 2021 22:21:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1E8688D0001; Sun, 15 Aug 2021 22:21:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0098.hostedemail.com [216.40.44.98]) by kanga.kvack.org (Postfix) with ESMTP id 030466B0071 for ; Sun, 15 Aug 2021 22:21:42 -0400 (EDT) Received: from smtpin33.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 8F2741E06A for ; Mon, 16 Aug 2021 02:21:42 +0000 (UTC) X-FDA: 78479342844.33.7D74B67 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf03.hostedemail.com (Postfix) with ESMTP id 42CE530002E2 for ; Mon, 16 Aug 2021 02:21:42 +0000 (UTC) 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> Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=fGbOje6i; spf=none (imf03.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 42CE530002E2 X-Stat-Signature: s1b16e7nzhcyrkgyixtdx5bdrbw5kkr6 X-HE-Tag: 1629080502-725769 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 >