Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp836154ybh; Tue, 21 Jul 2020 09:03:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxohFsSLSYGhOcOXXVtGaO2fhCSscLTg9yAdtyhifP4+0KmP0gusQ0e+sWIEOOxEug26rpv X-Received: by 2002:aa7:cd50:: with SMTP id v16mr26014367edw.252.1595347380913; Tue, 21 Jul 2020 09:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595347380; cv=none; d=google.com; s=arc-20160816; b=ErN48tm2DNMxq5GW2etM8WgVmrhrvY6oJHbt34M4ESUcF7lhlUNzaEZEcVKDl1lpzj 44EPBNbh0Iiut3BsRxVbw5LKzvXP6Zp/AuRNtBdHyiM+xh9PbII58zQx4ZGCESVPbjrJ uwncxc97VdGP3rckPuUgBFUG8GoTSVfvScmLe6nE3xcVKjwNqG0IZMzZJvTYj6hV6zta FS9moXLbZdkOQaGzjl0GqmwDXJfTMAb/j1nYKwj0waktOW7hLJMNAq9kZhCIChC3iyMR VzZmCwg5gqJguhTjo+YkwBn+DR3qz2gI13bXeQL8QZ5mbBsHJeUT6ZjZ9Ww0RB5hYaDx +yOw== 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:message-id:subject:cc :to:from:date; bh=gJ5pIrd1l8Dk8gF7W22vjz9IVcC+mgjA9cXZrpiAyYs=; b=cKcwD2Gyuw2Z4njStu8ldDyC2WLHc3wzGjDK2O4GbXLlJVSntBZQRFB/G6Fem4bOt1 ZVW1cjTE3qV183VdGUUD9/jHGrHjvKIr0HnYIag6EdDNb58FbSG5AreCnhH3I8Vw2pfn SLfbq8QdRqbRTtBm0NXpE2+mOVNuo+aKqmhomSTCxPAUJpFMjgONEceT3hJuJ/uw7E14 Cedzt3anIBtuAx9OUbkssWCPwlXtTOcWHR+uZZQFu8yUSdlijb01EFMoUS7tWsF8E+A0 5BmiOHQuBLc4tPGO4C6FS/0ohxQHEwB+GxfSFCx/LpSc/IyA3Zf90SV59UzraC8ovIC/ 2PcQ== 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 bz17si12498227ejc.222.2020.07.21.09.02.35; Tue, 21 Jul 2020 09:03:00 -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 S1729998AbgGUQBs (ORCPT + 99 others); Tue, 21 Jul 2020 12:01:48 -0400 Received: from verein.lst.de ([213.95.11.211]:52832 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727058AbgGUQBr (ORCPT ); Tue, 21 Jul 2020 12:01:47 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id E5A9068AFE; Tue, 21 Jul 2020 18:01:43 +0200 (CEST) Date: Tue, 21 Jul 2020 18:01:43 +0200 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Christoph Hellwig , Matthew Wilcox , Goldwyn Rodrigues , Dave Chinner , 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, Michael Kerrisk , linux-man@vger.kernel.org Subject: Re: RFC: iomap write invalidation Message-ID: <20200721160143.GA12046@lst.de> References: <20200713074633.875946-1-hch@lst.de> <20200720215125.bfz7geaftocy4r5l@fiona> <20200721145313.GA9217@lst.de> <20200721150432.GH15516@casper.infradead.org> <20200721150615.GA10330@lst.de> <20200721151437.GI15516@casper.infradead.org> <20200721151616.GA11074@lst.de> <20200721152754.GD7597@magnolia> <20200721154132.GA11652@lst.de> <20200721155925.GB3151642@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200721155925.GB3151642@magnolia> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Jul 21, 2020 at 08:59:25AM -0700, Darrick J. Wong wrote: > In the comment that precedes iomap_dio_rw() for the iomap version, maybe let's just do that.. > ``direct_IO`` > called by the generic read/write routines to perform direct_IO - > that is IO requests which bypass the page cache and transfer > data directly between the storage and the application's address > space. This function can return -ENOTBLK to signal that it is > necessary to fallback to buffered IO. Note that > blockdev_direct_IO and variants can also return -ENOTBLK. ->direct_IO is not used for iomap and various other implementations. In fact it is a horrible hack that I've been trying to get rid of for a while.