Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp788638ybh; Mon, 13 Jul 2020 00:50:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV3M8+Cc7LsqfANKyA7BvI3xUBONHIaxg8ljI2vV2XKiyOhYgs3FzVJol91hhlJHMpZSSV X-Received: by 2002:a17:906:d79c:: with SMTP id pj28mr69354631ejb.397.1594626632093; Mon, 13 Jul 2020 00:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594626632; cv=none; d=google.com; s=arc-20160816; b=udc7BNf3c73LFvvu7cv14T1XqmcpPo0+7GTQ+ED4NXMhzSvBdob7kMmrLyc+yfvfYm fMr8EbHZot8Dkc/k6aEGAQ1UpFE+xmHrlNAww8ReXfahssmoUuOqY/og07MN7yb9NawS UBPO2b1I4mQauFm3697fYFbPzxeBmRLFCIHDvV4ycYipQTiYMhgLgx9qHh01/GEIvghN gOqFOsdUyo6jPW2Z9+MFLzQAgNbinIzurAee1C0tjOupgiehOzgHh2iusCvd6eLwwjwc jEAwl5LTtXWr1FiQ5eU3RDyVcIYuOKWgKw06cQovaTza5SBD8tr+/RiKyDYIgVTO9Ph1 ck2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=O4RkM4L4v1uhacdo+mwWkqTommwnEKP8IOylxP5CiHY=; b=pRwOYUahFcqjLH/nuMbF/2dQPjjNSUE2QtUU5wvO9LmSUp+xefCu5dlS4KcAClvjuH GMT91dLgpI7T81wxPeBIdXIuxroZndkvxflEwmIwjDoismITFfsmMXjWddZS5Em8wMkt eL2uxKPOIDB/iT5ntIO9PJ2Gs3QQcFd5FbJrERY1VmR9pByE8SDFo/buWsynsr6klFa4 oiYOdueINDvP7Gt/zaugPZfjgmekoWTNWWMQ/V04YCy57E/HxBEuyMcMQTTHt9e98qC9 P40CL+xabNOsBCCUhEt2fr1nolh3m63FhMqgT6lFna4ZGIiMJKHQ4ZuO1Byy8x02tzeK 7oBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=dqXtaVOD; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 h20si8930859ejk.652.2020.07.13.00.49.58; Mon, 13 Jul 2020 00:50:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=dqXtaVOD; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729625AbgGMHsw (ORCPT + 99 others); Mon, 13 Jul 2020 03:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729621AbgGMHsv (ORCPT ); Mon, 13 Jul 2020 03:48:51 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91F78C061755; Mon, 13 Jul 2020 00:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=O4RkM4L4v1uhacdo+mwWkqTommwnEKP8IOylxP5CiHY=; b=dqXtaVODQtunzwGbeWrghLtHSf fs+Sfkplja9BdIX4aw+kn4Z0IVAD0+pDfQjQol+4hhlN8ZVGgRBQ6SfNxIYAjsimdaIfxSsmA484v syal7xxqYgpTBMBTtXAPvqiUt8A1BR9FZ6TgNnlqwzqiybvHB5/heOaLeoqFAHenD4DwUe3Bv+Ar8 q5d3TydO+ejePk96Y+yq0zmaorz9Z1Jlq4rlFZICXWbj3tYVAnDEe1BFIWqyEqayQsLokJlmp6HVz 5g/+jnwo3aquic/b0fhXipa1LhbIK5rWa5I9fuHwUkySqkYMLygyHKUZxrBcrAr0ePGVOugC6WTWh lcrul8ZA==; Received: from 089144201169.atnat0010.highway.a1.net ([89.144.201.169] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jutCf-00018J-0F; Mon, 13 Jul 2020 07:48:45 +0000 From: Christoph Hellwig To: Dave Chinner , Goldwyn Rodrigues Cc: Damien Le Moal , Naohiro Aota , Johannes Thumshirn , Matthew Wilcox , linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, cluster-devel@redhat.com, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org Subject: RFC: iomap write invalidation Date: Mon, 13 Jul 2020 09:46:31 +0200 Message-Id: <20200713074633.875946-1-hch@lst.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi all, this series has two parts: the first one picks up Dave's patch to avoid invalidation entierly for reads, picked up deep down from the btrfs iomap thread. The second one falls back to buffered writes if invalidation fails instead of leaving a stale cache around. Let me know what you think about this approch.