Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp984450lqt; Tue, 19 Mar 2024 09:22:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+K+iouLMcXe818HRZq9IVicHCx1fes50uhBj6J0xYuoOg0YUQQuSSCrHXLlabubLIb6tyIlXiBx6fOxJE2TEXYEYlbZwHpbkfa7NYwQ== X-Google-Smtp-Source: AGHT+IHCTjEZLWhnpQo6InwTFdJBp6NFA4poOaobvLx1WW4+p1dcmaN2ybkZwrfeVLZ8l/V8F0qU X-Received: by 2002:a17:902:e881:b0:1e0:1f53:a164 with SMTP id w1-20020a170902e88100b001e01f53a164mr89785plg.0.1710865355525; Tue, 19 Mar 2024 09:22:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710865355; cv=pass; d=google.com; s=arc-20160816; b=uloW9+HegkMAdSAtGKJGZI8niEFEM8wtRx7Rj4f1tyDss2mDpAhnfv3ZUUZkNrXeX7 OgvCZshzF9XB5jQWfqQHAlQroOgAeocmopQ0lQQZyJQE2ILxuHvKZdMAfgZldsUvO4r6 WtQtycfIs3ww9S9sjFAnKmK4Du8PzAzRFOfAt0e4RkzxFi9xqMRj8Kq3VzSIM4+ScKHb o2gufGkSwcy3P1GhfQ1K2P58PkdXTwmCsjcLe++HAsg9YTqbhodt0RKRqSwJZYcPQ9Rd qNUGZ61dCOSsVy1fgjcuPKlvPay6fA7gvqbM2jc33K7BuCJeM5wH3Hn89+x6OhJaHr1l PNqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=qssoFyi0EHVSMQZ8tvcNSLF8ll1cyBFfjAUL3WkFTKQ=; fh=vtbDM2CVVYL022EaJUe9nlTFyeA4/+1H45HsaQDHnaE=; b=H0btGuHm/2jSqMMdWw/QN4vn9dp7i7ikuwbYsmXs+1fSLzSe/A5DAUnUAntf/uyQAs rmSZ2ojTG3JRZpKNz/3mO10L18InTm0ZD6UaFWSdaio3gRt488CEWE5u1mWIV4lHmWz9 lQtdAWRUyo/dnPlkeqroU0gu7N8NTOog1Z176E5EGegiGd6RVuSSt8u8g9M8Rlq5bz+j GMGLq2QrszTqDF6MbiZCUlLGMtsmgm+z257uZ+HDctuxFHs9/XmIlRAYeKvGdwun+2zq QcYFIfXPdl8Rze2sOy+vvbDOrLZcyZPbQfu9OVRFnTMrdP4O7Zk8QOyiIGlzE5T9qtpt gCSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=l+V0fC34; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-nfs+bounces-2398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l16-20020a170903245000b001dd90de7f2bsi7134075pls.108.2024.03.19.09.22.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:22:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=l+V0fC34; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-nfs+bounces-2398-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 58B0CB24933 for ; Tue, 19 Mar 2024 16:18:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4515085958; Tue, 19 Mar 2024 16:14:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b="l+V0fC34" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84A4785924 for ; Tue, 19 Mar 2024 16:14:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864843; cv=none; b=WFQPEngpS9yY2VRAlu9BZ7oPQEE9EnwibmZwP/tr9ElDa4o68i8CuIN2O5zIJeVUezD8vTSB7f+5LFKfQ/H0ZbcTUpsduUXj+IPYofKann6oSNLL7Pxpw5WLFiwTwYZX41+JMzdGx0lQP9Uk1C17izvAIxEmhAOPujgDh9TnrGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864843; c=relaxed/simple; bh=xK6oFtMSPOO/+MFMrzgdRfpeW/yJYOp63dnRub6XKM4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ciQ7VJdgbwgRdQx+D6ysbPnNO/XJyczAfUMUNLhWOgE0+fsA0tMODuunLMjSl5aCUVqaEXmbDOl4Kqc/xaUuHqjKkeoFvqH3wn7um1V47Rv/Kid/t3SarwA9r03kkkLvzPVpahCQOGDU7KhKl8vba50dQJ/ZIqmRyg7YiWeicJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu; spf=pass smtp.mailfrom=szeredi.hu; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b=l+V0fC34; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=szeredi.hu Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-56899d9bf52so7438707a12.2 for ; Tue, 19 Mar 2024 09:14:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1710864839; x=1711469639; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qssoFyi0EHVSMQZ8tvcNSLF8ll1cyBFfjAUL3WkFTKQ=; b=l+V0fC34qbWms3t2kAM2Tsaco+GNRpzk32yyo0NNeSGtZuo5iLyGwkDFxfHS7jyxuT EjYfJjUYY/jl10/fim6+6QLQfSlCeSzFvYZY0aAjsYBNlqdd16aIRTso+2GaFAMF86Wh g0+a6IL6vAXBN23hxZ4lFYPLWdEr8CCHoiv+E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864839; x=1711469639; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qssoFyi0EHVSMQZ8tvcNSLF8ll1cyBFfjAUL3WkFTKQ=; b=mPIgkXW2D3xqhDNxeEzUcgP+bMg/AcUEJub4RTMO3FAwnwNBmMc/fbmGYT4WqI2cuS Got0OfH7APkPzvlt1+VoPBOgGSXyrI9/YN3jZrWvo014nkYWCWdcdLwXEWE5QQxQBq7b VVmYRUGp/FLwVv164OlUas7UcihnAszoeVxdnDeowSvgXLeujOybWDapDUwMfiT16rZz Vz27u1cCr0sVha8KihThVp7cExCkzkBPYtmD8zurK/sq2Ji6hgIAT96ayafaE8b1JtOA KUE05Rz7rICfUO37kvPWuUXw9ssVZiNAgZQPYJeLqMEHe9cMs3UbR5yjAQ1GerqNe4OI 6ToA== X-Forwarded-Encrypted: i=1; AJvYcCWOb0GpP7ygIzm4TzIktc4v95wPekHHaHtrqgmbvBb7mHgjEK9+C9pSzC8NY/Ru1hrwme2bISKQBXcsEBnqPyWDCQn2c5+yb1P2 X-Gm-Message-State: AOJu0YzVFbba2/OfUYcRX3DbqLnlbNOOEafK1h4CMITL+1jxPO//79uh kqTNsCYqWf2S9CjFqIcIW+FMrm0BeS28hxGVrvuGP/SMBKbprxosGkNL07daAiQ74rcsJV1TXzq HQKSMtmlp1JI8e8IRLcm7pGti+rFj8cgVDecGvA== X-Received: by 2002:a17:906:af07:b0:a46:47bc:580b with SMTP id lx7-20020a170906af0700b00a4647bc580bmr2203920ejb.56.1710864838625; Tue, 19 Mar 2024 09:13:58 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <1668172.1709764777@warthog.procyon.org.uk> <1831809.1709807788@warthog.procyon.org.uk> <651179.1710857687@warthog.procyon.org.uk> In-Reply-To: <651179.1710857687@warthog.procyon.org.uk> From: Miklos Szeredi Date: Tue, 19 Mar 2024 17:13:47 +0100 Message-ID: Subject: Re: [RFC PATCH] mm: Replace ->launder_folio() with flush and wait To: David Howells Cc: Matthew Wilcox , Trond Myklebust , Christoph Hellwig , Andrew Morton , Alexander Viro , Christian Brauner , Jeff Layton , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, netfs@lists.linux.dev, v9fs@lists.linux.dev, linux-afs@lists.infradead.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, devel@lists.orangefs.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Tue, 19 Mar 2024 at 15:15, David Howells wrote: > What particular usage case of invalidate_inode_pages2() are you thinking of? FUSE_NOTIFY_INVAL_INODE will trigger invalidate_inode_pages2_range() to clean up the cache. The server is free to discard writes resulting from this invalidation and delay reads in the region until the invalidation finishes. This would no longer work with your change, since the mapping could silently be reinstated between the writeback and the removal from the cache due to the page being unlocked/relocked. I'm not saying such a filesystem actually exists, but it's a theoretical possibility. And maybe there are cases which I haven't thought of. Thanks, Miklos