Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6572874imu; Mon, 21 Jan 2019 11:17:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN48quy2VsfhV//HigZw5Jlu9ss9NI3r4FSqi5nwc+J0qFtLhFq8HkyKaZs1GopNJbHejwua X-Received: by 2002:a65:6094:: with SMTP id t20mr28974584pgu.285.1548098257209; Mon, 21 Jan 2019 11:17:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548098257; cv=none; d=google.com; s=arc-20160816; b=t86m0ba93JgbnzNl9ItnRRnTn2iW0gaW4Tl59Aj24UJPstrqDECNbD2t/kBoBieMc3 RXNvrrNh5nqraC32x8cG38yYvB50EZdVag/Zf2Q/BUJadwuISHPScsOe9knanlrtMBO1 V2KHWf29K+XAQn7SBVV4qEeG9eJQEeytDOsp1oTUlWrTrAG7Kc5YJb31AJBX2UaBS0lj hYr1fa7iiWCngJ+U6gtRyCDvQkIeCabqPoSgXPJVtWSWEUAAFzf3J/90uQfk2pOlsFFY fdHl5+XSEd+XaS0uAP8RFx/XUr/wnRHqBggfWRmxH4BQJHbtV1pdiwTxfe2sv8uW3JhA lcFA== 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:mail-followup-to :message-id:subject:cc:to:from:date; bh=W2gD+mRjz0LnKFAFmZkfmGF2T9Dm1ElsR6FGVFr63gw=; b=AATqBrjfH3AGjwYG0VeI/NSowTtr+2BIwx5fJua0UQugkH91B9k7HWhX9UL6L4hPtO OOfKVDdJHn2wxzPSCSsygSVyyB8X1f2InzdwghCS+V6WmRZMXV1o/mYeADHcmXKV3DUE eBXEfl99UIlIE7nJdXn7xoXKMtZj7JXjoXfyV70Z0fxxwVLjQb/ySyIZPwTy1dQ4Hd9e fCF8y7llqP+ugKdzYOlNEeIBjiGVapYPLDFiwFY/wvFmgjYRh3Gl1r3XTdp3GASSG0tg b1FhwHwyAno3J4cQx32nj5UcSxtHterv0BYT7DrxJXFNA2vOoOeOQMrt8j78Ozs9gzpn cQYw== 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 i6si4619350pgq.207.2019.01.21.11.17.21; Mon, 21 Jan 2019 11:17:37 -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 S1727726AbfAUTMO (ORCPT + 99 others); Mon, 21 Jan 2019 14:12:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:46228 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727159AbfAUTMN (ORCPT ); Mon, 21 Jan 2019 14:12:13 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4221DAC3F; Mon, 21 Jan 2019 19:12:12 +0000 (UTC) Date: Mon, 21 Jan 2019 11:12:02 -0800 From: Davidlohr Bueso To: Jason Gunthorpe Cc: "akpm@linux-foundation.org" , "dledford@redhat.com" , "jack@suse.de" , "ira.weiny@intel.com" , "linux-rdma@vger.kernel.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Davidlohr Bueso , willy@infradead.org Subject: Re: [PATCH 6/6] drivers/IB,core: reduce scope of mmap_sem Message-ID: <20190121191202.xygjopuuifyepd63@linux-r8p5> Mail-Followup-To: Jason Gunthorpe , "akpm@linux-foundation.org" , "dledford@redhat.com" , "jack@suse.de" , "ira.weiny@intel.com" , "linux-rdma@vger.kernel.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Davidlohr Bueso , willy@infradead.org References: <20190121174220.10583-1-dave@stgolabs.net> <20190121174220.10583-7-dave@stgolabs.net> <20190121183218.GK25149@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190121183218.GK25149@mellanox.com> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Jan 2019, Jason Gunthorpe wrote: >On Mon, Jan 21, 2019 at 09:42:20AM -0800, Davidlohr Bueso wrote: >> ib_umem_get() uses gup_longterm() and relies on the lock to >> stabilze the vma_list, so we cannot really get rid of mmap_sem >> altogether, but now that the counter is atomic, we can get of >> some complexity that mmap_sem brings with only pinned_vm. >> >> Reviewed-by: Ira Weiny >> Signed-off-by: Davidlohr Bueso >> --- >> drivers/infiniband/core/umem.c | 41 ++--------------------------------------- >> 1 file changed, 2 insertions(+), 39 deletions(-) > >I think this addresses my comment.. > >Considering that it is almost all infiniband, I'd rather it go it go >through the RDMA tree with an ack from mm people? Please advise.. Yeah also Cc'ing Willy who I forgot to add for v2. > >Thanks, >Jason