Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3808606ybl; Mon, 3 Feb 2020 06:58:53 -0800 (PST) X-Google-Smtp-Source: APXvYqwm0VHudd4GNnWMUGiLZQi1j5jLW3L4vzKO1WpbEfxILl6guPPCb4MMH7GpZsILb8tIQtqj X-Received: by 2002:aca:acc4:: with SMTP id v187mr15168788oie.130.1580741933399; Mon, 03 Feb 2020 06:58:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580741933; cv=none; d=google.com; s=arc-20160816; b=GpPsSLHQ7L+x/BizQxKuBvgQk1ORZK+ZQQ0BY0BvNgcbvMxsrfQMjpDFigGdoy9kHh cGSKJfc7tgGJn1EgnEUcLwrYePKN8SOrFwfs4WtstfiHT9CjH5ohBPn/ZGH76UTpKQQV glsDAU/2ukjkY0o2oYGUb89oW721zxQJJuy0mIgDatPOXOTTmVO5n51Q2O8qC+f+5OFN HLtvqVRfJqSxShrg9HgXPdwxk+T7LEFMuAuwUA7xgqfZRhw2vN17efwbahQ6+cJaww7m qfb5taxcAEaHa1ikAvTsRBMoO71uAGv/a3KUwdMoJ0yQHKEOIRRW8BLtVHYRtBwGpwRv rw7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/c8JqFBoF+Wyv0y7vjPLE9bVpeDasBR2S69E+7r2TtY=; b=ssQyFlh7ue+RJvWASRHGFBVlt/yC998BL+hIz7DxFDxr9H8wRFrb0DSq/Np7IonqPo NEzZ0Fsd8Lh5RKuPXYa6MzT6u8abziGlBAi2obNnEhwfCAYiWkkBkxvMHD7x/deDmCkw urBLy8SvNZKRptYpG1wgwwSrkJVuelNQe8O09ZiCgWpyEfaSVJBlxL/DgvQnhr5kS8WT MGmg/paXdYW+KxiIrC7ceBNYSXWQTTwmAbEarGYI6soVVkLp5DQupUAjIn7fUpk8Y0Xc 0m3TjfQIyg+UdiMiHcM88xh9Rd6TZlunljKhCU+nQO6hm0E8nGn77og0mH18ABZmrEUw Gn1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Qvgtk33f; 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 t1si9189262otq.148.2020.02.03.06.58.41; Mon, 03 Feb 2020 06:58:53 -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=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Qvgtk33f; 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 S1726653AbgBCN0R (ORCPT + 99 others); Mon, 3 Feb 2020 08:26:17 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:32862 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727077AbgBCN0Q (ORCPT ); Mon, 3 Feb 2020 08:26:16 -0500 Received: by mail-lj1-f194.google.com with SMTP id y6so14641524lji.0 for ; Mon, 03 Feb 2020 05:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/c8JqFBoF+Wyv0y7vjPLE9bVpeDasBR2S69E+7r2TtY=; b=Qvgtk33ftlbcsS5ozma4SkqBFwKXe/etS4q98w1ik72KUgLvZCb5LF6bX9en+6X9bo RZkuxEhczs1LHPUxff5YONZLAinu2abSX1x8hd1YrVMhXhSPB6YnCGS2IgB7n4ZvycwY 4guibrya0uJJxVpAXyYDoHuuVBQYz+s5yLsNWj8sly+tVIODbFFekbsty1PMf0QzYhud yGJvBqTV33CGmK5iIJ6dNPJY9ofEyM3bweM9PnVwm793arTmLHxyQ5c99wp2YWiXJHjo fRwKRyBoSNe9NapKkTYXp8GqbEXUwRw4pFOvGuL+bWN/i5mbQ7e2xKkp1bS2QFcw0bFF p4Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/c8JqFBoF+Wyv0y7vjPLE9bVpeDasBR2S69E+7r2TtY=; b=EDnlGp2zhuN5FQlY3PVR5FgNz3cXCOXI7nH7voPtW5AAKWYQLGhhWo52eg+juCPa0h /weGo5TWSadbx8emZXxo6uSMsxUveEI8DqPfdOCqi+uGN0bvO0364uEmfhCtpme9/duy BA49yop1gHNVBQexkqih7hluArdm6mxJAUjYNRX8nmEPpAempTTQQ2m9qzw5rTPA1bUb vaGrLwsgeXlLg26zmNTKym0SldFSYFQpaT9RNCdxviMGjnTk9WY2mBNzebr50bNDUJPB fEr1HvIjyd7k3Au7ruINCoOWVdiT5n00tmPREGdVSXYrlFMxmScl43DQ7FMvy+Knej4V Pr7A== X-Gm-Message-State: APjAAAUJtYVEXELo2r1tADTnO0mN7auoSvjL4FkK5ZYlBCUP0Z/rWG8o g0YPD80iN8lhGSm1CMOFw1kuWg== X-Received: by 2002:a05:651c:1bb:: with SMTP id c27mr14397156ljn.277.1580736374697; Mon, 03 Feb 2020 05:26:14 -0800 (PST) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id m24sm11753539ljb.81.2020.02.03.05.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2020 05:26:13 -0800 (PST) Received: by box.localdomain (Postfix, from userid 1000) id A788C100DC8; Mon, 3 Feb 2020 16:26:26 +0300 (+03) Date: Mon, 3 Feb 2020 16:26:26 +0300 From: "Kirill A. Shutemov" To: John Hubbard Cc: Andrew Morton , Al Viro , Christoph Hellwig , Dan Williams , Dave Chinner , Ira Weiny , Jan Kara , Jason Gunthorpe , Jonathan Corbet , =?utf-8?B?SsOpcsO0bWU=?= Glisse , Michal Hocko , Mike Kravetz , Shuah Khan , Vlastimil Babka , Matthew Wilcox , linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-rdma@vger.kernel.org, linux-mm@kvack.org, LKML Subject: Re: [PATCH v3 06/12] mm/gup: require FOLL_GET for get_user_pages_fast() Message-ID: <20200203132626.ckkozepykxmqxf6a@box> References: <20200201034029.4063170-1-jhubbard@nvidia.com> <20200201034029.4063170-7-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200201034029.4063170-7-jhubbard@nvidia.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 31, 2020 at 07:40:23PM -0800, John Hubbard wrote: > Internal to mm/gup.c, require that get_user_pages_fast() > and __get_user_pages_fast() identify themselves, by setting > FOLL_GET. This is required in order to be able to make decisions > based on "FOLL_PIN, or FOLL_GET, or both or neither are set", in > upcoming patches. > > Signed-off-by: John Hubbard Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov