From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f200.google.com (mail-io0-f200.google.com [209.85.223.200]) by kanga.kvack.org (Postfix) with ESMTP id B22BA6B0038 for ; Fri, 1 Dec 2017 11:31:42 -0500 (EST) Received: by mail-io0-f200.google.com with SMTP id t7so9026179iod.8 for ; Fri, 01 Dec 2017 08:31:42 -0800 (PST) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id c5sor790700ith.54.2017.12.01.08.31.41 for (Google Transport Security); Fri, 01 Dec 2017 08:31:41 -0800 (PST) Date: Fri, 1 Dec 2017 09:31:40 -0700 From: Jason Gunthorpe Subject: Re: [PATCH v3 1/4] mm: introduce get_user_pages_longterm Message-ID: <20171201163140.GJ7754@ziepe.ca> References: <20171130095323.ovrq2nenb6ztiapy@dhcp22.suse.cz> <20171130174201.stbpuye4gu5rxwkm@dhcp22.suse.cz> <20171130181741.2y5nyflyhqxg6y5p@dhcp22.suse.cz> <20171130190117.GF7754@ziepe.ca> <20171201101218.mxjyv4fc4cjwhf2o@dhcp22.suse.cz> <20171201160204.GI7754@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Dan Williams Cc: Michal Hocko , Andrew Morton , Linux MM , "linux-kernel@vger.kernel.org" , Christoph Hellwig , "stable@vger.kernel.org" , "linux-nvdimm@lists.01.org" , linux-rdma On Fri, Dec 01, 2017 at 08:29:53AM -0800, Dan Williams wrote: > > And maybe we should think about moving the rlimit accounting into this > > new function too someday? > > DAX pages are not accounted in any rlimit because they are statically > allocated reserved memory regions. I mean, unrelated to DAX, any user of get_user_pages_longterm should respect the memlock rlimit and that check is shared code. Jason -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org