Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp178085imj; Fri, 15 Feb 2019 21:03:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IY7FW4dEW7LJmyj7oB++F18vSu6f9UoikNFP3RV8h+ngtYA5MwoIbaC5jpbvx5E6M/lkyIR X-Received: by 2002:a63:3fc8:: with SMTP id m191mr12625212pga.240.1550293400819; Fri, 15 Feb 2019 21:03:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550293400; cv=none; d=google.com; s=arc-20160816; b=lbzSFck6CbE+P/rDGJgJFS9EDjGxyF0Huci6LrWtwFyucfomJFdeymA/liAj4KgxKV lPV8KPJ5opL6DM63fxE3KSQVFyp0iBTK/NtmzUYFOmEGXejKM8QBfdEdOVA//KRz8Seo rb2t/kZDnefZLREwPkrIW7ZUlPs/bY3Jvfx2EtJNNerS9+uM1obboIWzo4uW6kvjNBnN zEi5Fh3Dn/PxsGJlVKfoHVGL5RWhxYQq5weVmNgrYeNMGO3e9xsjVt1tdjSsJTr9WM14 wrQ124G2Pg6uOuupAFMpB/X5jo2IAzxEJ+lsWQgpiJC9s1uij17LiH3wQQCmOEbzjLLj 8Nww== 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:dkim-signature; bh=ekIKuh6zBnupKG9gxO673zuIE5kCUp3UX8vSRNljvIk=; b=YMRE9KvdCv+emThZRfvBRj8biy5Db/GCn3wDFYCENPG4kUhPn05hmH+xCDtUM1sBVp 8jLsH7Gc95aVMYtJpA78ZxFJOVTV4Xg0fVAuOjRMJjmtvN/OF+oHo+6NEa5rrWqAwqk5 YYfJqWU/W7iupVhUEtgl5l3FdrwHAf2zIbj7hNSZgWL4OnqyS1qXmBg1idw0A7aSqGaF tNjxduN40KbZromf432v0F7OTk4+5rQRvpTrviphdf1M2UHyJDDzvjKtWXBbVqxuMfL+ +QtGXJBPSHyVZMZWFGFQY3ss7jkHk015BSEEdN/I4JZgPWYmxQCqlpj7noXMOSEjtiss 7QAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=N6vgbDuA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si6933984pgl.106.2019.02.15.21.03.05; Fri, 15 Feb 2019 21:03:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=N6vgbDuA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388152AbfBOSIz (ORCPT + 99 others); Fri, 15 Feb 2019 13:08:55 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:55668 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387853AbfBOSIz (ORCPT ); Fri, 15 Feb 2019 13:08:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ekIKuh6zBnupKG9gxO673zuIE5kCUp3UX8vSRNljvIk=; b=N6vgbDuAO0pFZp1PJU1ZeiFyA ytwPOqX5TusjyRZIce5OHcQYYs3JVVuTD5LuzVjB4CxjutjoKS4NZs9QFgUcKdXLB7gtJ1URorkMb TNstdGaGILxTXQmo0Qr0PM6yGl/H/UEiXQxcDH+CVG23ZcxIbzqjiNePIi44h8UtgBQ188zYyyTSV eFkDmiks78XQrfwzlTAk8egXMa9LlLeD9OzBkE5gSLkbtTTuPKq5G4cuAiWId9oCv28UJWxRVMkFQ C+2kwPtXa2mhF1XtTTcUxzUY1N0PthxEuqk6mq99jR2F3ASJNSYoge3Y5zgoFsHyC+XCkvgPfRZEr and9h+huQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhuu-0003J4-NB; Fri, 15 Feb 2019 18:08:52 +0000 Date: Fri, 15 Feb 2019 10:08:52 -0800 From: Matthew Wilcox To: Christopher Lameter Cc: Dave Chinner , Jerome Glisse , Jason Gunthorpe , Dan Williams , Jan Kara , Doug Ledford , Ira Weiny , lsf-pc@lists.linux-foundation.org, linux-rdma , Linux MM , Linux Kernel Mailing List , John Hubbard , Michal Hocko Subject: Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA Message-ID: <20190215180852.GJ12668@bombadil.infradead.org> References: <20190208111028.GD6353@quack2.suse.cz> <20190211102402.GF19029@quack2.suse.cz> <20190211180654.GB24692@ziepe.ca> <20190214202622.GB3420@redhat.com> <20190214205049.GC12668@bombadil.infradead.org> <20190214213922.GD3420@redhat.com> <20190215011921.GS20493@dastard> <01000168f1d25e3a-2857236c-a7cc-44b8-a5f3-f51c2cfe6ce4-000000@email.amazonses.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01000168f1d25e3a-2857236c-a7cc-44b8-a5f3-f51c2cfe6ce4-000000@email.amazonses.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 15, 2019 at 03:42:02PM +0000, Christopher Lameter wrote: > On Fri, 15 Feb 2019, Dave Chinner wrote: > > > Which tells us filesystem people that the applications are doing > > something that _will_ cause data corruption and hence not to spend > > any time triaging data corruption reports because it's not a > > filesystem bug that caused it. > > > > See open(2): > > > > Applications should avoid mixing O_DIRECT and normal I/O to > > the same file, and especially to overlapping byte regions in > > the same file. Even when the filesystem correctly handles > > the coherency issues in this situation, overall I/O > > throughput is likely to be slower than using either mode > > alone. Likewise, applications should avoid mixing mmap(2) > > of files with direct I/O to the same files. > > Since RDMA is something similar: Can we say that a file that is used for > RDMA should not use the page cache? That makes no sense. The page cache is the standard synchronisation point for filesystems and processes. The only problems come in for the things which bypass the page cache like O_DIRECT and DAX.