From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7431C04E30 for ; Mon, 9 Dec 2019 18:25:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BE272214D8 for ; Mon, 9 Dec 2019 18:25:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575915953; bh=0x24JbKtdKPgiAN8s6OzmJaIhlnMzm4HgL/VS3/HRF0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=ZsjcNHziZFmoWozKmjWoDFsIRd3uWvjuFBUTtWwMsTkzRcr6rgnoBHDSOR+6KlMg8 3u1mCoDpKyaLQTxu28r7UQyLiliwBY4kRQRhD3g1aYyV66hjCTjFejusYKnTr+ncMd iEUDsA1WPIBI1FB/s7Ymfr3IR2GUv7mZNlGomTCk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726769AbfLISZw (ORCPT ); Mon, 9 Dec 2019 13:25:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:34632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbfLISZw (ORCPT ); Mon, 9 Dec 2019 13:25:52 -0500 Received: from localhost (unknown [5.29.147.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D6DDB2077B; Mon, 9 Dec 2019 18:25:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575915951; bh=0x24JbKtdKPgiAN8s6OzmJaIhlnMzm4HgL/VS3/HRF0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZnGDGGKR61nsPfye0idSv4CQ458wRafaZkQmQZCr4nXClHZRBL14FF5hzcL+Iwr+5 hgKqXB4UAbwN8iFUPw+yFGaciUZ6nXVQwOXuO2IkSomP69aIOFbEOljPCDWfbrHpqd RXE7T3sI5DbZKTd2gmfnMybXHlxuYQ7vJwugYwdw= Date: Mon, 9 Dec 2019 20:25:47 +0200 From: Leon Romanovsky To: John Hubbard Cc: Andrew Morton , Jason Gunthorpe , Christoph Hellwig , Ira Weiny , linux-rdma@vger.kernel.org, linux-mm@kvack.org, LKML , Christoph Hellwig , Jan Kara , Jason Gunthorpe Subject: Re: [PATCH v2 2/2] IB/umem: use get_user_pages_fast() to pin DMA pages Message-ID: <20191209182547.GD67461@unreal> References: <20191204213603.464373-1-jhubbard@nvidia.com> <20191204213603.464373-3-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191204213603.464373-3-jhubbard@nvidia.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 04, 2019 at 01:36:03PM -0800, John Hubbard wrote: > And get rid of the mmap_sem calls, as part of that. Note > that get_user_pages_fast() will, if necessary, fall back to > __gup_longterm_unlocked(), which takes the mmap_sem as needed. > > Reviewed-by: Christoph Hellwig > Reviewed-by: Jan Kara > Reviewed-by: Jason Gunthorpe > Reviewed-by: Ira Weiny > Signed-off-by: John Hubbard > --- > drivers/infiniband/core/umem.c | 17 ++++++----------- > 1 file changed, 6 insertions(+), 11 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky