Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1096018ybh; Mon, 13 Jul 2020 09:12:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzMX73EUT9tRWQT55egy4DTUcWFq+ZMPsSCgViE5G9N1Ugqpu0DaU1CbKbdurXm6SZwXgX X-Received: by 2002:a17:906:7387:: with SMTP id f7mr424870ejl.131.1594656756735; Mon, 13 Jul 2020 09:12:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594656756; cv=none; d=google.com; s=arc-20160816; b=C1ZxTlTIEg2aexU1X6lJnbwY/i8/NKdPLqXPPdwg45lyr7bYeiNFdhDAHZhcKc9URB DPlOyPtrth2zJavtQsBvjI8jpEW3i520h+Ph/qL8GQxcsY3AaplojrFEkZomWd0lzN3S 7sxEjPEAnqiRRapynwIuxcviBHtACqsuQyPGcpu4Di0RGtFo5GTTZFKjB8mndOLmAlz3 A6p6tTMWSmzOqYiXxRMHt1q0m26Dha8kzmUeHraHYzt+58wjGGk/8WuoP+GqCdF2X1+J MUAoXjGvFquBPhJSrX4pcSVrvEKWMi31RaWPFMIYOnnuGK23WEF39usK7uLccRmZUfIz A3ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=BVGjLSOK70HIt6+Ctecy+V+P9W3TLCeK1RnNRxFRStI=; b=dvDFskvjHgzo/c/ViXietElIg14gTOamsK9UTdEfMPPoCZlh0Krinn7ICT6usiQ0Tu lqgXyDB1RXfo88qJP1gBBfWJnQMy7nYmpEfrSDGlm/v+CaEEnMbOVuL60fcJtUQ7tLvq adtqCApWgtF7GeE/lDEMjgbEbJiZURJmfyX3BcUOZxiu4oSTRqVuRt4+lTp8y9Cau/c/ HtH1FKgikKcWJhEUrYD2ppd3Vt6Z5FDudIIhpRHxnhcg5oZ/LUcjW4s0B+vqp380FEkL OEupcsWobf5L4H7sEDZu4NYfL5IysYaeTfrG3/SlcHqa5sFLoNNXjReFpQbW5UyJkXz9 1rXQ== ARC-Authentication-Results: i=1; mx.google.com; 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 me11si9365797ejb.458.2020.07.13.09.12.05; Mon, 13 Jul 2020 09:12:36 -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; 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 S1729703AbgGMQKU (ORCPT + 99 others); Mon, 13 Jul 2020 12:10:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:36262 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729027AbgGMQKU (ORCPT ); Mon, 13 Jul 2020 12:10:20 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 1FFF9B66C; Mon, 13 Jul 2020 16:10:21 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 4DADDDA809; Mon, 13 Jul 2020 18:09:57 +0200 (CEST) Date: Mon, 13 Jul 2020 18:09:57 +0200 From: David Sterba To: Goldwyn Rodrigues Cc: Christoph Hellwig , Dave Chinner , 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: Re: [PATCH 2/2] iomap: fall back to buffered writes for invalidation failures Message-ID: <20200713160957.GM3703@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Goldwyn Rodrigues , Christoph Hellwig , Dave Chinner , 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 References: <20200713074633.875946-1-hch@lst.de> <20200713074633.875946-3-hch@lst.de> <20200713122050.okus7qlampk5ysyb@fiona> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200713122050.okus7qlampk5ysyb@fiona> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) 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 07:20:50AM -0500, Goldwyn Rodrigues wrote: > On 9:46 13/07, 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. > > > > Signed-off-by: Christoph Hellwig > > Thanks. This will help btrfs. The current next tree contains the iomap > changes I recomended and would need to be reverted in order to > incorporate this. Once this is in the next tree I will (re)format the > btrfs iomap dio patches. Patches in next don't need to be reverted, if you put together a branch with any iomap or other prep patches + btrfs iomap-dio I'll replace it in the for-next snapshot I push.