Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2178943ybk; Sun, 17 May 2020 12:41:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYddKOcvPmMomTCTVGe/nkjfE8tH5aoW7iivYpyvZKDHeji4fyMa5dnWoImaDa/IK5ZXHm X-Received: by 2002:a17:906:7e43:: with SMTP id z3mr5695105ejr.221.1589744513074; Sun, 17 May 2020 12:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589744513; cv=none; d=google.com; s=arc-20160816; b=ARg0CW4R9w82AIx1M8q1zXB2ikLNiF6Ci0NPRnU2nXrk/2fEm80qMr/CMb5wTR5AXA bb04YHIda1MtBE0GN6GZgAykjShdBVsKR+BrfH2suUSRlGwwGmwOGhbJmtYKU8gGLojQ 4mdMpF5cEy6pzNoP27r/su7B5mbpQxLUlG/T40iO5vWNsWLg37/PcMoknDGvhe6EiJVR ro2+ry72Qjpml5fEhdkrzReomLE2BXQdFk0l7j2FinHMo9UdxLrKUghb20oxYcm+WQ3T U971ISqqx0tIeHJHw4Zc1+GC3x3TS/fmfZ2T49zxX7qUXS1iyH3Xi/Dk8yzIxrylJJwf r47g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=/IrDQkbRuWeNxexb25b3AAT8hVx0Nv+nU1ubhtYDppk=; b=dtHomZRVMB31qL/wlR1cKICa7XTAEN+I7ajERtqr+nWywYmsZmsoX2VDkxvfE/5mqJ NajF6o9HxR6JtSG/lvh3ByZbSyxGZ6UseN9TsJnW5LqxL4HV8+9Q5ak/XLqxhN/5hES2 JoKDUENxnVLLVWD+rV7XoWlYrMpdcq/42vf4n1tIaCplTHCN5pfKw0tL4pIkriR9N9B8 I26dywDwCsC7FdsaaZZb/l22+KlngD2o7D35l/bogG07PQut0BA6xE9fBnPGCCnT4a3X O4R2jlPHdZufV3P+yL8ZXWKIw9xb8i41dwD0bAFOYWDTCpOnSkxWeiOgb9lv/m6EuJTY 1Sgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si5486676edf.273.2020.05.17.12.41.30; Sun, 17 May 2020 12:41:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726659AbgEQTiH (ORCPT + 99 others); Sun, 17 May 2020 15:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbgEQTiH (ORCPT ); Sun, 17 May 2020 15:38:07 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89C8EC061A0C; Sun, 17 May 2020 12:38:07 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 14568128A2D8A; Sun, 17 May 2020 12:38:07 -0700 (PDT) Date: Sun, 17 May 2020 12:38:06 -0700 (PDT) Message-Id: <20200517.123806.1659008654334663086.davem@davemloft.net> To: jhubbard@nvidia.com Cc: linux-kernel@vger.kernel.org, kuba@kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com Subject: Re: [PATCH] rds: convert get_user_pages() --> pin_user_pages() From: David Miller In-Reply-To: <20200517012336.382624-1-jhubbard@nvidia.com> References: <20200517012336.382624-1-jhubbard@nvidia.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 17 May 2020 12:38:07 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Hubbard Date: Sat, 16 May 2020 18:23:36 -0700 > This code was using get_user_pages_fast(), in a "Case 2" scenario > (DMA/RDMA), using the categorization from [1]. That means that it's > time to convert the get_user_pages_fast() + put_page() calls to > pin_user_pages_fast() + unpin_user_pages() calls. > > There is some helpful background in [2]: basically, this is a small > part of fixing a long-standing disconnect between pinning pages, and > file systems' use of those pages. > > [1] Documentation/core-api/pin_user_pages.rst > > [2] "Explicit pinning of user-space pages": > https://lwn.net/Articles/807108/ > > Cc: David S. Miller > Cc: Jakub Kicinski > Cc: netdev@vger.kernel.org > Cc: linux-rdma@vger.kernel.org > Cc: rds-devel@oss.oracle.com > Signed-off-by: John Hubbard Applied to net-next, thanks.