Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6935694imu; Thu, 31 Jan 2019 02:06:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN7vCU/EvSNxlTyUZkCzpWpXCSzgId1PHhwUNN/4t0cVlUcHNGZnEA3hlHsJzo3XIfs1Qd+2 X-Received: by 2002:a63:de04:: with SMTP id f4mr30536334pgg.292.1548929174517; Thu, 31 Jan 2019 02:06:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548929174; cv=none; d=google.com; s=arc-20160816; b=a7kZ5sA4zeln0yykL5cGK27u5+5knQfElR/m1r+suG1HirbPHns058w3A4q/aZdLJd TWIBU8EOPxSxD+RDxmmfYbT3ThH+ftf2BjPtYOh1zVte7o/K/R92xS92AcDQ74MQTbB8 0iT3Xtq/lWO0qpsSbDvavI8vTGUrioo1OFlNk9f2R0sxMFl0SQYn8jNMC/XRPWQKYm5P LTZtZRoGsxNBMCQjV4O1I00uhCCvVaB8b653v2XS3zT0cMW9g/OBMihaJy0DSp2gtw+N qsr6Vp/ytIe7/0OVqfD6GKzopJhZXhnKvW0QHKWk6xZEAwV1s4tzCnpZm+ktU2bxg21y xgag== 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; bh=84KpOcjnDTcRuqZg06HUC2WxK5TFCS8JxISUrYomBOg=; b=sswnyGC9N3DrO2oF1F/Hzz+yEHxApB7hn7GR1QUfnZIu+h8X0ej6V03CEWbZvdS77C tWwypWayH3BRWRPxSVGXBQY6/lfELPfnkUY+WBEpgD5l8428UcJJShoGLVt9QERetdUw shEX4c1KWiObE+jk5oFHjCqh5G7zkkrTWkyvIblt6DUp+Hc3dm1CuYuP7hAu5DmX9sYW azibl8c9Vuy6JYPriLpqR9phRRkOK7J9+5s0eygjzkbczI+fxng9z+zPRagsUWxgcfYZ flRyba7mrpPUQtLx9mR/PIMoZ6p0AiXlsj0lVT4EVTegjSLzFEMPVeEQmhJ6X61pdFJw oHQw== ARC-Authentication-Results: i=1; mx.google.com; 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 l81si4068322pfj.230.2019.01.31.02.05.58; Thu, 31 Jan 2019 02:06:14 -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; 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 S1731940AbfAaKED (ORCPT + 99 others); Thu, 31 Jan 2019 05:04:03 -0500 Received: from mx2.suse.de ([195.135.220.15]:47846 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726316AbfAaKEC (ORCPT ); Thu, 31 Jan 2019 05:04:02 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C4BCBADA2; Thu, 31 Jan 2019 10:04:00 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 5E9CB1E3FFD; Thu, 31 Jan 2019 11:04:00 +0100 (CET) Date: Thu, 31 Jan 2019 11:04:00 +0100 From: Jan Kara To: "Weiny, Ira" Cc: 'Jason Gunthorpe' , Davidlohr Bueso , "akpm@linux-foundation.org" , "dledford@redhat.com" , "jack@suse.de" , "linux-rdma@vger.kernel.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "Dalessandro, Dennis" , "Marciniszyn, Mike" , Davidlohr Bueso Subject: Re: [PATCH 3/6] drivers/IB,qib: do not use mmap_sem Message-ID: <20190131100400.GC19222@quack2.suse.cz> References: <20190121174220.10583-1-dave@stgolabs.net> <20190121174220.10583-4-dave@stgolabs.net> <20190128233140.GA12530@ziepe.ca> <20190129044607.GL25106@ziepe.ca> <20190129185005.GC10129@iweiny-DESK2.sc.intel.com> <20190129231903.GA5352@ziepe.ca> <2807E5FD2F6FDA4886F6618EAC48510E79BA6A27@CRSMSX101.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2807E5FD2F6FDA4886F6618EAC48510E79BA6A27@CRSMSX101.amr.corp.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 30-01-19 18:01:33, Weiny, Ira wrote: > > > > On Tue, Jan 29, 2019 at 10:50:05AM -0800, Ira Weiny wrote: > > > > .. and I'm looking at some of the other conversions here.. *most > > > > likely* any caller that is manipulating rlimit for get_user_pages > > > > should really be calling get_user_pages_longterm, so they should not > > > > be converted to use _fast? > > > > > > Is this a question? I'm not sure I understand the meaning here? > > > > More an invitation to disprove the statement > > Generally I agree. But would be best if we could get fast GUP for > performance. I have not worked out if that will be possible with the > final "longterm" solutions. Initially probably not, longer-term it might be added if there are performance data supporting that (i.e., showing real workload that would benefit). In principle there's nothing that would prevent gup_fast like functionality for long-term pins but I expect there will be always additional overhead (compared to plain gup_fast()) of establishing something like leases to identify long-term pins. But we haven't figured out the details yet. For now we concentrate on fixing short-term pins and issues with those. Honza -- Jan Kara SUSE Labs, CR