Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp540113pxb; Fri, 13 Aug 2021 00:15:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxs2LczAftD/hZ105RremN+96JBUF47I84ljVeJcN5l6chkd5zBoCvs4520cb/jtx2MARDi X-Received: by 2002:a92:a012:: with SMTP id e18mr764707ili.271.1628838907737; Fri, 13 Aug 2021 00:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628838907; cv=none; d=google.com; s=arc-20160816; b=QNH9D0TGeqvcJ8uAw1/RE+8DFsT9VB5NtkmoME/W5yxXQrxO2GzKt65/i0VWBqbftp AnIr/IUkkExtXe1OfZJ0VQrLCI6lAPYBTMFZ6r+s2vbWCKnQExm6Q+2tysLhlEtivXy1 6ghnAbgMcYUEA/doA2IBeUCt1zfDfixxR5JyJpjhbaexNaKTNA/W/i9QvqxaESKLC1ac V4JozuT4AjHJFQtwttKDhYLLAISacBVITQ1dTdluu3ybrezI2Je8Tahw7T3VtYevYnwB 0UuB1OpNkDg9JEpP6/Zxxu+ChwQ0eOCjN0mt+vYgnlGMF2up+2XWJKWI73YKDW1PT0Gm kOvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=wtWSYxJamA9A9DoHtsfNo3rvbNQOVB4OizwuvY63WXY=; b=JEEToQXM8E55b5B+hWb5h7Vj8wqEuFYpd7mFkIfX5qAt0XeJP4GVJxDEV9erPqzHkS 62xSRg1Sd1rW3TGHiV0jLw6GRZEX54u80/LDO4VhPKOp4GQlsx2Z7Vb0gfJXaJtIhhAj cxGxKNDZb+snqLxDnPk1Hulhl6sZVxZvD2o1ovdRvZGQTjp6dMnJ4bVnkSFRwlUzqN8+ njk4xtMBwo87xCzju3fWGMN33c6HnHHw+61Hj4ACqucwRiXhlVQFeCOwWJ9n95yfUqDr xjfN/OOnK8bvRb0SGvkf9OnpUYv42O99fdjOTunvChUwI3Q10aCtGsQgzAJ+E8mqjbmx i+ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 i4si616326ilv.27.2021.08.13.00.14.55; Fri, 13 Aug 2021 00:15:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239301AbhHMHOq (ORCPT + 99 others); Fri, 13 Aug 2021 03:14:46 -0400 Received: from verein.lst.de ([213.95.11.211]:46644 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239291AbhHMHOp (ORCPT ); Fri, 13 Aug 2021 03:14:45 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 5E36368B05; Fri, 13 Aug 2021 09:14:17 +0200 (CEST) Date: Fri, 13 Aug 2021 09:14:15 +0200 From: Christoph Hellwig To: David Howells Cc: willy@infradead.org, trond.myklebust@primarydata.com, darrick.wong@oracle.com, hch@lst.de, viro@zeniv.linux.org.uk, jlayton@kernel.org, sfrench@samba.org, torvalds@linux-foundation.org, linux-nfs@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 5/5] mm: Remove swap BIO paths and only use DIO paths [BROKEN] Message-ID: <20210813071415.GD26339@lst.de> References: <162879971699.3306668.8977537647318498651.stgit@warthog.procyon.org.uk> <162879976139.3306668.12495248062404308890.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <162879976139.3306668.12495248062404308890.stgit@warthog.procyon.org.uk> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Aug 12, 2021 at 09:22:41PM +0100, David Howells wrote: > [!] NOTE: This doesn't work and might damage your disk's contents. > > Delete the BIO-generating swap read/write paths and always use > ->direct_IO(). This puts the mapping layer in the filesystem. > > This doesn't work - probably due to ki_pos being set to > page_file_offset(page) which then gets remapped. Also because most common block file systems do not actually implement a ->direct_IO that does anything (noop_direct_IO).