From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by kanga.kvack.org (Postfix) with ESMTP id 1AC658E0004 for ; Sat, 8 Dec 2018 13:26:13 -0500 (EST) Received: by mail-pl1-f199.google.com with SMTP id l9so5171238plt.7 for ; Sat, 08 Dec 2018 10:26:13 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id n67si6270227pfk.34.2018.12.08.10.26.12 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 08 Dec 2018 10:26:12 -0800 (PST) Date: Sat, 8 Dec 2018 10:26:04 -0800 From: Christoph Hellwig Subject: Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions Message-ID: <20181208182604.GA24564@infradead.org> References: <20181205011519.GV10377@bombadil.infradead.org> <20181205014441.GA3045@redhat.com> <59ca5c4b-fd5b-1fc6-f891-c7986d91908e@nvidia.com> <7b4733be-13d3-c790-ff1b-ac51b505e9a6@nvidia.com> <20181207191620.GD3293@redhat.com> <3c4d46c0-aced-f96f-1bf3-725d02f11b60@nvidia.com> <20181208163353.GA2952@redhat.com> <20181208164825.GA26154@infradead.org> <20181208174730.GB2952@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181208174730.GB2952@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: Jerome Glisse Cc: Christoph Hellwig , Dan Williams , John Hubbard , Matthew Wilcox , John Hubbard , Andrew Morton , Linux MM , Jan Kara , tom@talpey.com, Al Viro , benve@cisco.com, Christopher Lameter , "Dalessandro, Dennis" , Doug Ledford , Jason Gunthorpe , Michal Hocko , Mike Marciniszyn , rcampbell@nvidia.com, Linux Kernel Mailing List , linux-fsdevel On Sat, Dec 08, 2018 at 12:47:30PM -0500, Jerome Glisse wrote: > Most of the user of GUP are well behave (everything under driver/gpu and > so is mellanox driver and many other) ie they abide by mmu notifier > invalidation call backs. They are a handfull of device driver that thought > they could just do GUP and ignore the mmu notifier part and those are the > one being problematic. So to me it feels like bystander are be shot for no > good reasons. get_user_pages is used by every single direct I/O, and while the race windows in that case are small they very much exists.