Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp919960ybh; Mon, 13 Jul 2020 04:56:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLEb59UA7oujeRShsNiEk3Xml7doKIaM07Xvs/B/Gpb/vfRjP8RYPJH/u1yLjcnDKZKYk3 X-Received: by 2002:aa7:c656:: with SMTP id z22mr78707529edr.101.1594641370696; Mon, 13 Jul 2020 04:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594641370; cv=none; d=google.com; s=arc-20160816; b=VdmrO9Ko3nmK+FgznAfpooXeT93RbvfIzJGHQgzgUYTjkIQaeHCtNwCbcI+QBlL+uC sbp6gt8h7RCAZZO8Hw45sJccuKmiZcpSw2dGdBOZs9pxFkVKpqF+Nctm1h7hu7ej/1xy 9N/+ugGvjOSVoEOXmB4oS7JmC/WRzniwai7V/mOlLPDFkk+Xiz6Nm7Z9AnGTnd1UEuCk 2Mesd5WgX7w8R+xqIr3Dcp2rGmeRcWa4e8VNBBnfFJnBgc1jgNgLOMMtn4vP981bMcSL jJ23BFJDdQAqI9f29BbHADC5QL7we1TsR2hVhHpMCpJ43Q4cZSvtqpb8aOSMf/K4u1Ad FZRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uLFAndwWzTjXcjnnkj0cK4pUDHXUjgGWKnCg3eg4tXM=; b=f4VtXqn5LbkG1RthUdn5pGDOUvKU8BKFPE3ZfPNlHH9l4TcF6kH3oRAjYkuCsuGAgD 4qF/vSzllV5DxFLBM7L/ZOS8PRYPeaiCAKHo5T3zB9pyBSZBSa9YE7JhLZ10YwR5yrdc KBWk2h0ealPAEvXGxAOeRxVuQy9C/j2B4fnveqKRcXurfDdq9OVU10MPOuTwBE6YqPIC S/iPdD0pSESfuFknrctkKu6P56BiyaCEjKNL/TuMQvQ+dz32MJWxr95W9a+rXpcj0GYM SiawizTORTT3AMCAOhcnl1MD7vA0xR2LlanSvLIshgR2neabbvmXydlW4PUjaGNWom8A A7Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=Wvox2aLk; 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 n10si9747350ejk.504.2020.07.13.04.55.41; Mon, 13 Jul 2020 04:56:10 -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=Wvox2aLk; 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 S1729510AbgGMLzU (ORCPT + 99 others); Mon, 13 Jul 2020 07:55:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727890AbgGMLzU (ORCPT ); Mon, 13 Jul 2020 07:55:20 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E50FFC061755; Mon, 13 Jul 2020 04:55:19 -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=uLFAndwWzTjXcjnnkj0cK4pUDHXUjgGWKnCg3eg4tXM=; b=Wvox2aLkDPEvhLsNc8WLk8VuxN xPWa5UDz8aYe9P5zJ+iqipvSHOKSGNpfGWKJ90n3oAkFae9hwImLp2oyMFY26LUS8p7oRFmm1EOrk GsdQ2rohZpQTT2JQYj7UFW2FHZWWlacHmPTPyaA7ruva9c4AdVnNm7AgjYAKYA+hYGcsZMDxjvCCT XbsY4Y8m+4bbsHFX/xb/NGFM+AbEkO6+zKWaXka6j42QDYcnM07egqolsUOgew2hIhPdPuoBYH15P aA07FbQRV1HzgQlT0aLwJqJjPQe0dZ+pfMhgEVlHGn08RDdlCExt4NJMVagrLr07ES52oDA9pCznS GxrMiqpg==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jux38-0004gc-1T; Mon, 13 Jul 2020 11:55:10 +0000 Date: Mon, 13 Jul 2020 12:55:09 +0100 From: Matthew Wilcox To: Christoph Hellwig Cc: Dave Chinner , Goldwyn Rodrigues , Damien Le Moal , Naohiro Aota , Johannes Thumshirn , 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: Re: [PATCH 2/2] iomap: fall back to buffered writes for invalidation failures Message-ID: <20200713115509.GW12769@casper.infradead.org> References: <20200713074633.875946-1-hch@lst.de> <20200713074633.875946-3-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200713074633.875946-3-hch@lst.de> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Jul 13, 2020 at 09:46:33AM +0200, Christoph Hellwig wrote: > Failing to invalid the page cache means data in incoherent, which is > a very bad state for the system. Always fall back to buffered I/O > through the page cache if we can't invalidate mappings. Is that the right approach though? I don't have a full picture in my head, but wouldn't we be better off marking these pages as !Uptodate and doing the direct I/O?